I’ve got a touch event related to background. When I put objects above the event still fires even when Im only touch the objects above. I prepared the obects over the background with .toFront()-function. I am bogged down. Someone could help?
As written above. Touch/tap event is always propagated through objects on top to objects on the bottom (depth) until you tell Corona to stop it (by returning true). So if you do not want event to propagate further then you must stop propagation chain by giving object listeners which at least return true.
You may want to use “obj:toFront()” in your handler to make sure that, once touched, the object stays in focus. Otherwise, if you drag one object over another, you may generate a new touch event on the second object.
As written above. Touch/tap event is always propagated through objects on top to objects on the bottom (depth) until you tell Corona to stop it (by returning true). So if you do not want event to propagate further then you must stop propagation chain by giving object listeners which at least return true.
You may want to use “obj:toFront()” in your handler to make sure that, once touched, the object stays in focus. Otherwise, if you drag one object over another, you may generate a new touch event on the second object.