From 53d7b9f70c3658d950ceb30a3f1d81817d2359c3 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Fri, 26 Aug 2022 23:22:25 +0200 Subject: [PATCH] smallest bugfix --- Basalt/Frame.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Basalt/Frame.lua b/Basalt/Frame.lua index a5d9af9..59342ed 100644 --- a/Basalt/Frame.lua +++ b/Basalt/Frame.lua @@ -340,6 +340,7 @@ return function(name, parent, pTerm, basalt) end end + local function focusSystem(self) if(focusedObject~=focusedObjectCache)then if(focusedObject~=nil)then @@ -496,7 +497,7 @@ return function(name, parent, pTerm, basalt) end; setScrollable = function(self, scrollable) - isScrollable = scrollable and true or false + isScrollable = (scrollable or scrollable==nil) and true or false if(self.parent~=nil)then self.parent:addEvent("mouse_scroll", self) end @@ -512,7 +513,7 @@ return function(name, parent, pTerm, basalt) getScrollAmount = function(self) - return scrollAmount + return autoScroll and scrollAmount or calculateMaxScroll(self) end, show = function(self)