GianlucaGuarini / Tocca.js

Super lightweight script (~1kb) to detect via Javascript events like 'tap' 'dbltap' 'swipeup' 'swipedown' 'swipeleft' 'swiperight' on any kind of device.
http://gianlucaguarini.github.io/Tocca.js/
MIT License
660 stars 60 forks source link

Issue with longtap and native pinch and zoom #62

Closed Darkle closed 5 years ago

Darkle commented 5 years ago

Hi, I think I've found a bug in tocca. It seems that a 'longtap' event is triggered when you use the native pinch and zoom to zoom in to an image on the page. Increasing the longtapThreshold doesnt seem to help.

GianlucaGuarini commented 5 years ago

thanks for reporting it. It should be trivial to fix it. I will look into it asap

GianlucaGuarini commented 5 years ago

fixed in v2.0.4 thank you