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