Topic was automatically imported from the old Question2Answer platform.
Asked By
jujumumu
I have a button that needs to fire when pressed but still pass on the input event. The pass event is working like the stop event so it does not work. How can I get around that?
Pass means that event propagation goes to parent node.
what node tries to catch the input event? is it parent or ancestor node of the Button node?
volzhs | 2019-10-03 12:28
A ancestor node is trying to receive the event. I thought pass is supposed to fire the event but it continues to propagate up the scene tree until consumed.
jujumumu | 2019-10-03 23:39
Setting the flag toIgnore worked for me. I usually run into trouble with this when I have nested containers, as the children get by default set to Pass. It can take a bit to figure out that you just forgot to let the container ignore mouse events all together.