Using Corona v2014.2393
If you open an overlay scene that contains a button widget with an onRelease event that calls composer.hideOverlay(), the tap event falls through to the parent scene even if isModal == true.
Is this the intended behavior of composer, or a bug? What is the current best practice workaround?
I believe this is a bug as the documentation for version 2527 states that isModal=true stops touch events dropping through.
Having said that, it doesn’t specifically mention taps, so you might want to register a bug.
My workaround for that previous bug was to create a display.newRect the size of the screen, set the alpha = .01, and then put a tap listener on that object. The tap listener would just return true.
Jay
I can confirm this bug, my workaround was to change my tap listeners to touch.
I believe this is a bug as the documentation for version 2527 states that isModal=true stops touch events dropping through.
Having said that, it doesn’t specifically mention taps, so you might want to register a bug.
My workaround for that previous bug was to create a display.newRect the size of the screen, set the alpha = .01, and then put a tap listener on that object. The tap listener would just return true.
Jay
I can confirm this bug, my workaround was to change my tap listeners to touch.