This project is read-only.

swipe and pinch both fired


First, thanks a lot for the script, it's been a big help.
I've come across a possible issue, as I have a view that pans and zooms, so have attached a 'swipe' and 'pinch' listener. The problem i have is that if i pinch, then both pinch and swipe get fired and if i swipe with two fingers, then pinch gets fired intermittently as well. Is this expected behaviour or have i done something wrong?


neuedigitale wrote Jun 12, 2012 at 4:38 PM

** Closed by neuedigitale 6/12/2012 8:38 AM

neuedigitale wrote Jun 12, 2012 at 4:38 PM

jamesbenjamin wrote Jun 16, 2012 at 12:01 PM


thanks for the response, has this issue been resolved? The link doesn't resolve to a page with anything on and i've tested the lasted version and the issue still occurs?

The problem appears to be due to the fact that pinch still gets fired if the two fingers are moving in the same direction (i'm presuming it only tests to see if the distance between the two fingers has changed, not their directionality, to determine if a pinch has occurred), when they should only get fired if they're moving in opposite directions.

And swipe should be the opposite, where it only gets fired if the fingers are travelling in the same direction, not just moving.



premchandck1975 wrote Jun 29, 2012 at 12:53 PM


I am also facing same problem.



wrote Feb 22, 2013 at 1:36 AM

wrote Feb 16, 2014 at 11:00 PM

Another84 wrote Feb 16, 2014 at 11:02 PM

Thank you for your great work!

I am also facing this problem. Please help!


wrote Feb 16, 2014 at 11:40 PM