mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12: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
|
end
|
||||||
|
|
||||||
def hit_element?(x, y)
|
def hit_element?(x, y)
|
||||||
|
return unless hit?(x, y)
|
||||||
|
|
||||||
@children.reverse_each do |child|
|
@children.reverse_each do |child|
|
||||||
next unless child.visible?
|
next unless child.visible?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user