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

Swipe Only Fires Once #324

Closed samwisegrangee closed 5 years ago

samwisegrangee commented 7 years ago

I'm implementing TouchSwipe for an image slider here: https://madcap.wpengine.com/shop/apparel/third-coast-pocket-tee/

It worked fine when I sketched it out on Codepen: https://codepen.io/samwisegrangee/pen/QgoQqB

It even works on the mobile-simulator, but on a device my swiping only fires once.

ollylove commented 7 years ago

same here! sometimes it works, sometimes it doesn't and this is the warning in the console:

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

mattbryson commented 5 years ago

TouchSwipe does not mark any of the touch events as passive as they are not passive events. It does need to block scrolling in some configurations.

So I don't think that error is coming from touchSwipe, or at least this branch of it.

Closing as over a year old. Please feel free to re open if you are still having issues.