Detecting when a touch event is no longer moving.

Ok I know touch events have 3 phases that can be detected, began, moved, and ended.

But what if the user moved their finger then stopped but did not lift up their finger.

Is there a simple way to detect their finger movement has stopped? All I can think of (which seem pretty silly to me) is add another event listener that would listen to the event.x & event.y and if they remained constant then trigger the touch event’s ended phase.

Help much appreciated :wink: [import]uid: 66228 topic_id: 33864 reply_id: 333864[/import]

This is quite common when you wan to detect the difference between a tap and a hold when only using the touch event.

Start a timer and simply cancel it when the next phase occurs. If the timer fires then you know the touch has not changed.

The one problem with this is that if you dispatch a fake touch event it will not permeate to the display objects below, as a normal touch event would. [import]uid: 8271 topic_id: 33864 reply_id: 134603[/import]

Thanks for the feedback :slight_smile:
[import]uid: 66228 topic_id: 33864 reply_id: 134606[/import]

This is quite common when you wan to detect the difference between a tap and a hold when only using the touch event.

Start a timer and simply cancel it when the next phase occurs. If the timer fires then you know the touch has not changed.

The one problem with this is that if you dispatch a fake touch event it will not permeate to the display objects below, as a normal touch event would. [import]uid: 8271 topic_id: 33864 reply_id: 134603[/import]

Thanks for the feedback :slight_smile:
[import]uid: 66228 topic_id: 33864 reply_id: 134606[/import]