I can’t explain this bug, been working on it for hours. It just doesn’t make any sense.
I have an addEventListener for a touch on a 50x50 square. it’s with if event.phase == “ended” then. and when i click on it and release it does that function probably over a thousand times. if not more. it does an insane amount. then if i go and change it so its if event.numTaps == 2 then and make it a tap listener instead of touch, it will work perfectly fine. and that is ALL i am changing. there is no if event.phase == “moved” or anything at all, just an ended one and when I swap to numTaps == 2 it works perfectly fine…anyone else have this problem?
my point being. the touch runs the function thousands of times when its supposed to do it only once, doesnt make sense at ALL. while if i switch to numTaps == 2 it runs it once perfectly, no problems. [import]uid: 77199 topic_id: 31401 reply_id: 331401[/import]