Dear Corona community,
lets say I have a red rectangle on a white larger background rectangle. My red rectangle has a tap-listener printing "tapped", my white background has a touch-listener printing "touched" in ended-phase. When I look in console, the touch event prints first.
My questions are:
1) If I don't change my code: Will my touch-event always fire before my tap event?
2) If I put more and more "actions" (adding/removing stuff) into my touch-listener ended-phase and keep the print-statement at the end, would my tap-print-statement fire first at some point?
Background-information: I have a scrollView with a scrollListener that starts a transition in the ended-phase. In this scrollview I have a text-object with a tap-listener on it among other objects. When I tap on that text-object, I call composer.gotoScene and I'd like to cancel all transitions.
Calling transition.cancel() in my tap-listener perfectly works, I'm just wondering if that is always the case or if I could - technically - make the tap-listener fire first, which would result in canceling nothing since the transition would occur after.
Would appreciate any help here