#80 fix hover function call set_enabled

This commit is contained in:
Insality 2020-07-18 21:47:15 +03:00
parent 3ba51f3e9d
commit a561892fb6

View File

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