Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get a touch event with phase UITouchPhaseStationary?

Tags:

iphone

In these methods, I get corresponding phases:
touchesBegan:withEvent: UITouchPhaseBegan,
touchesMoved:withEvent: UITouchPhaseMoved,
touchesEnded:withEvent: UITouchPhaseEnded,
touchesCancelled:withEvent: UITouchPhaseCancelled.

Where can I get a touch event with this phase: UITouchPhaseStationary?

like image 718
yehnan Avatar asked Oct 14 '22 10:10

yehnan


1 Answers

You can assume a touch in the time between 2 Moved events as stationary.

(UITouchPhaseStationary exists because of multitouch. If one finger moves while the other doesn't, a Moved event is still triggered, but the stationary touch will be in the phase UITouchPhaseStationary.)

like image 81
kennytm Avatar answered Oct 18 '22 14:10

kennytm