Is there any way that I can force the system to cancel a touch event? Let’s say the user begins a touch, and starts moving around the screen. I basically want to force the event to cancel out after a piece of logic (that I set), thus effectively ending the entire touch event (and then, ideally, performing some other action upon that occurence).
From the documention on touch events, we have this:
event.phase is a string identifying where in the touch sequence the event occurred:
“began” : a finger touched the screen.
“moved” : a finger moved on the screen.
“stationary” : a finger is touching the screen but hasn’t moved from the previous event.
“ended” : a finger was lifted from the screen.
“cancelled” : the system cancelled tracking of the touch.
I want to set the phase to “cancelled”… but it says the system must cancel it. Can I instruct the system to do so via code? If so, how? Any help is appreciated!
Brent
[import]uid: 9747 topic_id: 3793 reply_id: 303793[/import]