Popup activates when scrolling on smartphone
-
While the popup works fine on desktop, I’m encountering a problem on smartphones:
The slightest touch triggers the popup – for example, when a user puts a finger on the screen to scroll, the popup can trigger.
Optimally, it should only trigger on a deliberate click, not a light touch.I believe this happens because it’s set to
currentTarget.bind('click touchstart'
meaning the popup is set to trigger the popup on bothclick
andtouchstart
events.
This approach can cause issues on touch devices because touchstart is triggered immediately when a user touches the screen, even if the touch is slight or accidental, leading to an overly sensitive trigger for the popup.Listening for
click
events for non-touch devices andtouchend
events for touch devices, while also checking that the touch hasn’t moved too much (to differentiate it from a swipe), might solve this.Any chance you can look at a fix to this in a future update?
- You must be logged in to reply to this topic.