Small Fix
Fixed removeChildren for movable frames and scrollable frames
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user