Support » Plugin: Alligator Menu Popup » How not to Popup on mobile?

Viewing 1 replies (of 1 total)
  • Plugin Author cubecolour

    (@numeeja)

    This is not supported. I have looked into this previously but the main problem with attempting to do this is that there is no reliable way to detect that the page is being viewed on a mobile device. User agent sniffing will miss devices. Checking whether touch events are supported to identify mobile devices will return positive for touch-enabled PCs, and checking the browser width can give inaccurate identification of a mobile device.

    My best suggestion would be to add a function using one of the ideas at http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery, to select elements with the ‘mpopup’ class and remove that class when a mobile device is indicated.

    • This reply was modified 2 years, 1 month ago by  cubecolour.
    • This reply was modified 2 years, 1 month ago by  cubecolour.
    • This reply was modified 2 years, 1 month ago by  cubecolour.
Viewing 1 replies (of 1 total)
  • The topic ‘How not to Popup on mobile?’ is closed to new replies.