smallest bugfix
This commit is contained in:
@@ -340,6 +340,7 @@ return function(name, parent, pTerm, basalt)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local function focusSystem(self)
|
local function focusSystem(self)
|
||||||
if(focusedObject~=focusedObjectCache)then
|
if(focusedObject~=focusedObjectCache)then
|
||||||
if(focusedObject~=nil)then
|
if(focusedObject~=nil)then
|
||||||
@@ -496,7 +497,7 @@ return function(name, parent, pTerm, basalt)
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
setScrollable = function(self, scrollable)
|
setScrollable = function(self, scrollable)
|
||||||
isScrollable = scrollable and true or false
|
isScrollable = (scrollable or scrollable==nil) and true or false
|
||||||
if(self.parent~=nil)then
|
if(self.parent~=nil)then
|
||||||
self.parent:addEvent("mouse_scroll", self)
|
self.parent:addEvent("mouse_scroll", self)
|
||||||
end
|
end
|
||||||
@@ -512,7 +513,7 @@ return function(name, parent, pTerm, basalt)
|
|||||||
|
|
||||||
|
|
||||||
getScrollAmount = function(self)
|
getScrollAmount = function(self)
|
||||||
return scrollAmount
|
return autoScroll and scrollAmount or calculateMaxScroll(self)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
show = function(self)
|
show = function(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user