mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-15 12:42:34 +00:00
Possible fix for being able to click a button that isn't visible due to scrolling, by ensuring that the host container is hit before checking children.
This commit is contained in:
@@ -75,6 +75,8 @@ module CyberarmEngine
|
||||
end
|
||||
|
||||
def hit_element?(x, y)
|
||||
return unless hit?(x, y)
|
||||
|
||||
@children.reverse_each do |child|
|
||||
next unless child.visible?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user