Hi, this happens when I create a circle that I have added an event listener to it. If I touch the circle and release it prints both commands but when I touch the circle, drag my finger off screen and release, it does not print the second command. Please see as follow:
local function onTouch(event) if(event.phase=="began")then print("began detected") elseif(event.phase=="ended" or event.phase=="cancelled")then print("ended or cancelled detected") end end circle=display.newCircle(100, 100, 30) circle:addEventListener("touch", onTouch)
How do I make it so the event ends when I drag my finger off the screen? Please help!