Touch event propagation to next scene?

Hello,

I have a scene with a background and an onclick handler for touch. However when I click on it it goes to the next page and automatically clicks on that same spot (which just so happens to be another onclick handler).

I read I need to return true, but I am using (slim) director class and changing scene’s before returning true.

How can I stop this?

[lua] – Determine what character was pressed
local function characterTouch(e)

if halfScreenWidth >= e.x then
– Human
– Set option for human
setOption(“character”,“1”)
else
– Robot
– Set option for robot
setOption(“character”,“2”)
end

– Move onto the game select screen
director:changeScene(“gameTypeSelect”)

return true
end

– Add the event handlers
background:addEventListener( “touch”, characterTouch )[/lua]
[import]uid: 46343 topic_id: 18770 reply_id: 318770[/import]

I added a bunch of e.phase == ended to them and it solved it.

It’s still a bit weird that I need to do this. [import]uid: 46343 topic_id: 18770 reply_id: 72258[/import]