mattbryson / TouchSwipe-Jquery-Plugin

TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.
http://labs.rampinteractive.co.uk/touchSwipe/
Other
4.05k stars 1.68k forks source link

allowPageScroll prevents native scrolling #337

Closed ebatgerel closed 5 years ago

ebatgerel commented 6 years ago

Hello guys i have a problem with pageScrolling i have running on os 11 iphone 6 safari and google chrome not working allowPageScroll: "none", triggerOnTouchEnd: false, maxTimeThreshold: 3000, threshold: 75, preventDefaultEvents: false

And its jumpy when i swipe left or right on IOS, but android is well.

And here is video

knoxcard commented 6 years ago

This appears to lead to the solution. A new pull request can fix this...also the browser has to be detected as Chrome to run the fix, other browsers wont recognize it.

https://stackoverflow.com/questions/37721782/what-are-passive-event-listeners

mattbryson commented 5 years ago

this is related to passive event listeners, but TouchSwipe does NEED active ones (as it does stop page scrolling so you can swipe). Will be sorted in next release with a re worked event model.