End a touchMove
Posted: Tue May 28, 2013 1:06 am
Hi there,
Is it possible to end a touch move while the users touch has not yet lifted..?
My scenario is like this :
User touches -- I handle touchStart
User finger moves -- i am handling the touchMove messages, during the move if the finger moves more than a desired number of pixels i fire off a function from within the touchMove handler.
I want to end the messages for this touchMove and fire the touchEnd, and i dont want to hear any more move messages until the finger is lifted and re-touched so i had thought --
on touchMove
if my arbitrary move has been exceeded then
function myfunctioncall() // blocking
send touchEnd to this card in 10 milliseconds
exit to top
end if
end touchMove
This works but causes unpredictable crashing, so i am certainly doing something wrong here..?
Is it possible to end a touch move while the users touch has not yet lifted..?
My scenario is like this :
User touches -- I handle touchStart
User finger moves -- i am handling the touchMove messages, during the move if the finger moves more than a desired number of pixels i fire off a function from within the touchMove handler.
I want to end the messages for this touchMove and fire the touchEnd, and i dont want to hear any more move messages until the finger is lifted and re-touched so i had thought --
on touchMove
if my arbitrary move has been exceeded then
function myfunctioncall() // blocking
send touchEnd to this card in 10 milliseconds
exit to top
end if
end touchMove
This works but causes unpredictable crashing, so i am certainly doing something wrong here..?