any way to cancel or stop touch function when touch function is running ? I have a hang on using drag and drop function, when click the object and hold it until the timer is 0 appeared popup dialog and i have a hang all of button such as back button dosen't work,
Problem Solve : you must remove the object to stop the function use object:removeSelf()
Thanks everyboy for your help :)
Sorry for the delay. I noticed that you are not clearing the Focus on the object you are dragging. You must first clear the focus of your previous touch listener in order for the code to recognize a new touch even if you removed the event listener the focus is still there: