Hello! I am having an issue where the Scroll Bar is too big on, for example, mobile or when you rescale your tab on Computer!
Normal:
Mobile:
Thanks! Any help will be appreciated!
Hello! I am having an issue where the Scroll Bar is too big on, for example, mobile or when you rescale your tab on Computer!
Normal:
Mobile:
Thanks! Any help will be appreciated!
It’s because you are using Offset
instead of Scale
. Use Scale
so it can keep the same size.
Sorry for such a late response, but can you even change the size of Scroll Wheels?
Yea like there is no option to set it to scale instead of offset.
The scrollbar size is based on offset only (ScrollBarThickness is in units of pixels, not percent).
Here is a LocalScript that should solve this problem for you:
local barSize = UDim.new(0.05, 0)
--First number is size in scale (percent) and second number is size in offset (pixels)
local scrollingFrame = script.Parent
local scrollingFrameParent = script.Parent.Parent
local function update()
scrollingFrame.ScrollBarThickness = scrollingFrameParent.AbsoluteSize.X * barSize.Scale + barSize.Offset
end
update()
scrollingFrameParent:GetPropertyChangedSignal("AbsoluteSize"):Connect(update)
(Copy the code into a LocalScript, place the LocalScript inside the ScrollingFrame)
Let me know if you’ve got any questions/concerns/the code doesn’t work b|c of a typo
Yea, this is working perfectly! Does this do any lag, or am I all good?