3
Vote

swipe and pinch both fired

description

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?

comments

neuedigitale wrote Jun 12, 2012 at 3:38 PM

http://jgestures.codeplex.com/releases/view/89406



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

neuedigitale wrote Jun 12, 2012 at 3:38 PM

jamesbenjamin wrote Jun 16, 2012 at 11:01 AM

Hi,

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.

Thanks,

James

premchandck1975 wrote Jun 29, 2012 at 11:53 AM

Hi

I am also facing same problem.

Thanks

Prem

wrote Feb 22, 2013 at 12:36 AM

wrote Feb 16, 2014 at 10:00 PM

Another84 wrote Feb 16, 2014 at 10:02 PM

Hi
Thank you for your great work!

I am also facing this problem. Please help!

Thanks

wrote Feb 16, 2014 at 10:40 PM