mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
#80 fix hover function call set_enabled
This commit is contained in:
parent
3ba51f3e9d
commit
a561892fb6
@ -65,7 +65,7 @@ end
|
||||
|
||||
|
||||
function M.on_input_interrupt(self)
|
||||
M.set_hover(self, false)
|
||||
self:set_hover(false)
|
||||
end
|
||||
|
||||
|
||||
@ -109,10 +109,10 @@ function M.set_enabled(self, state)
|
||||
|
||||
if not state then
|
||||
if self._is_hovered then
|
||||
M.set_hover(false)
|
||||
self:set_hover(false)
|
||||
end
|
||||
if self._is_mouse_hovered then
|
||||
M.set_mouse_hover(false)
|
||||
self:set_mouse_hover(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user