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

@@ -189,6 +189,16 @@ function Drag.init(self, node, on_drag_callback)
end
function Drag.on_internal_remove(self)
component.on_internal_remove(self)
self.on_touch_start:clear()
self.on_touch_end:clear()
self.on_drag_start:clear()
self.on_drag:clear()
self.on_drag_end:clear()
end
function Drag.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)