mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 21:22:33 +00:00
Make UI events travel up parent hierarchy until event is either :handled or there is no parent to notify
This commit is contained in:
@@ -23,6 +23,7 @@ module CyberarmEngine
|
|||||||
return :handled if handler.call(self, *args) == :handled
|
return :handled if handler.call(self, *args) == :handled
|
||||||
end
|
end
|
||||||
|
|
||||||
|
parent.publish(event, *args) if parent
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user