jerrybendy / vue-touch-events

Support simple touch events (tap / swipe / touch hold)
MIT License
537 stars 51 forks source link

Ensure swipeTolerance is taken into consideration for the Y axis #65

Closed cameronbatty closed 3 years ago

cameronbatty commented 4 years ago

When swiping on the Y axis the swipeTolerance option is disregarded causing events to fire no matter the distance swiped. X axis works as expected.

jerrybendy commented 4 years ago

I have tried this for so many times, but it works well

Anders-Lunde commented 3 years ago

I am also experiencing this bug: tolerance only affects X, not UY swipes. This is on iPad air 2, iPadOS 13.

jerrybendy commented 3 years ago

I have forgotten this issue for a long time. Sorry about that.

Thanks for @cameronbatty 's contribution. I have merged this PR and release a new version of v3.0.1. Thank you