Weird "ended" phase touch event listener behavior

I’m developing a turn-based board game, and I’m seeing some odd behavior on touch events.

I created a table listener to register touches and execute a user’s turn when the listener received the “ended” phase in the touch event. I’m finding that the listener function is getting called with the “ended” phase multiple times. Is that normal? I would think that an “ended” phase should only be called once if I only set the listener once.

I could set a flag to check if the “ended” phase has already been called in order to make sure the code does not execute multiple times, but that feels like a hack that could break in a race condition where the “ended” phase listener gets called multiple times before the flag can be properly set.

Do other people see their touch “ended” phase getting called multiple times or is this a bug on my end? [import]uid: 124706 topic_id: 22908 reply_id: 322908[/import]

Could you please post some demo code in between < lua > < /lua > tags below?
Thanks! [import]uid: 10389 topic_id: 22908 reply_id: 91639[/import]

Sounds like your not returning true at the end of your touch function

[code]
return true [import]uid: 84637 topic_id: 22908 reply_id: 91729[/import]