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:
2021-06-18 02:57:49 +00:00
parent cdee6548e3
commit 5452d149c3

View File

@@ -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?