Solve #182 add table pool for events

This commit is contained in:
Insality
2022-04-05 18:57:40 +03:00
parent 2779f9cf7a
commit dff522fbaa
24 changed files with 244 additions and 6 deletions

View File

@@ -38,6 +38,13 @@ function Hover.init(self, node, on_hover_callback)
end
function Hover.on_internal_remove(self)
component.on_internal_remove(self)
self.on_hover:clear()
self.on_mouse_hover:clear()
end
function Hover.on_late_init(self)
if not self.click_zone and const.IS_STENCIL_CHECK then
local stencil_node = helper.get_closest_stencil_node(self.node)