overlayEnded and overlayBegan are dispatched to the calling storyboard scene. The overlay scene only gets enterScene/exitScene’s (well createScene, destory too).
What I do for my back button handler is set a flag in my overlay’s enterScene:
storyboard.isOverlay = true
then in exitScene:
storyboard.isOverlay = false
That way in my back button handler in my main.lua, if I see storyboard.isOverlay is true, I hide it, if not then I go where I think I should go. I can’t tell from the thread if a bug ever got filed or not. We need bug reports to fix things like this. When we ask for a bug report, it’s because we’ve looked at your problem and think its a bug, not an issue with your code and we need the bug report to get it into the engineer’s work queue.