lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.18.0 vs lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.19.0
- old
+ new
@@ -73,9 +73,11 @@
def update
@children.each(&:update)
end
def hit_element?(x, y)
+ return unless hit?(x, y)
+
@children.reverse_each do |child|
next unless child.visible?
case child
when Container