We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d026a3 commit 2647408Copy full SHA for 2647408
src/libs/beGUI/beGUI_Containers.lua
@@ -195,11 +195,13 @@ local List = beClass.class({
195
if scrollBarTransparency then
196
local widgetPos = y + 1
197
local widgetSize = h - 2
198
+ local limit = 0
199
if self._scrollableHorizontally then
200
widgetSize = widgetSize - 4
201
+ limit = 3
202
end
203
local contentSize = self._maxY
- local barSize = math.max(math.min((widgetSize / contentSize) * widgetSize, widgetSize - 3), 8)
204
+ local barSize = math.max(math.min((widgetSize / contentSize) * widgetSize, widgetSize - limit), 8)
205
local percent = beUtils.clamp(-self._scrollY / (contentSize - widgetSize), 0, 1)
206
local slide = widgetSize - barSize
207
local offset = slide * percent;
0 commit comments