Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pan and Tap gesture recognizer for same view, which need to fail for the other?

I need to detect Pan and Tap on the same view, but the tap action is also the first action for pan, so I assume the Tap action need the Pan action to be failed, but then does it make any delay as it has to wait a little bit in order to know if a tap is followed by a movement for a Pan?

Thanks

like image 973
hzxu Avatar asked Mar 09 '13 04:03

hzxu


1 Answers

the tap action is not the first action for a pan. the tap happens after touch up (e.g. the user lifts their finger). the pan happens while the touch is still down (e.g. the finger is pressing on the screen and starts to move).

try it, it will work fine.

like image 140
XJones Avatar answered Sep 30 '22 15:09

XJones