I’m trying to debug a weird issue: I have two composer scenes A and B. A has a tap listener attached to the scene view so that when the user taps the screen [lua]composer.gotoScene(“scenes. B”)[/lua] is called. I’ve checked and I know that this only gets called once. However if I’m tapping furiously at the screen the “show” function for scene B is called twice (only the “did” phase).
It’s really weird and I’m trying to track it down. So far I’ve attached a stacktrace output to every gotoScene call and print lines when scene B is entered. But I’m none the wiser. Anyone got any thoughts where to look next?
Here’s what my cleaned up console output looks like:
[lua]
Stack trace: composer.gotoScene(“scenes.A”)
stack traceback:
…
Scene A tap listener fired!
Stack trace composer.gotoScene(“scenes.B”)
stack traceback:
…
event fired: show B phase “will”
event fired: show B phase “did”
X: calling composer.getScene(“B”)
event fired: show B phase “did”
X: calling composer.getScene(“B”)
[/lua]
In reality my debug statements are a lot less idealised! The rather neat “Scene A tap listener fired!” actually just prints “go go go!” in my code