Skip to content

Commit 11d1eba

Browse files
authored
fix UIWIdgets pass events to children in wrong order (#2553)
1 parent cf2ea62 commit 11d1eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcade/gui/widgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def on_event(self, event: UIEvent) -> Optional[bool]:
186186

187187
if self.visible:
188188
# pass event to children
189-
for child in self.children:
189+
for child in reversed(self.children):
190190
if child.dispatch_event("on_event", event):
191191
return EVENT_HANDLED
192192

0 commit comments

Comments
 (0)