Commit d9bad8e7 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Child widgets are now traversed in reserse order during event delegation.

parent b9c5b6e3
......@@ -172,7 +172,9 @@ class Widget(Positionable, Logger):
event.set_offset(self.get_offset())
child_found = False
for child in self.children:
# Delegate to children in reverse order because widgets that are
# added later, should be placed over previously added siblings
for child in reversed(self.children):
if child.contains_event(event):
child_found = True
child.delegate_event(event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment