Small Fix

Fixed removeChildren for movable frames and scrollable frames
This commit is contained in:
Robert Jelic
2023-05-18 13:42:55 +02:00
parent 47a4706a14
commit 059759d1c0
2 changed files with 12 additions and 0 deletions

View File

@@ -40,6 +40,13 @@ return function(name, basalt)
self:listenEvent("mouse_drag")
end,
removeChildren = function(self)
base.removeChildren(self)
self:listenEvent("mouse_click")
self:listenEvent("mouse_up")
self:listenEvent("mouse_drag")
end,
dragHandler = function(self, btn, x, y)
if(base.dragHandler(self, btn, x, y))then
if (isDragging) then

View File

@@ -98,6 +98,11 @@ return function(name, basalt)
self:listenEvent("mouse_scroll")
end,
removeChildren = function(self)
base.removeChildren(self)
self:listenEvent("mouse_scroll")
end,
setParent = function(self, p, ...)
base.setParent(self, p, ...)
parent = p