ScrollingFrame Issue

ScrollingFrames are super buggy for me, and I can’t tell if this is an Engine bug or not. However, because this doesn’t happen to every frame, just this one, I’m assuming it’s me doing something wonky.

Objects inside the ScrollingFrame do not scroll properly at all.

There is a UIListLayout and a bunch of TextLabels and Frames inside this ScrollingFrame.

Some children do not move! If you scroll so that they’re realigned to their proper place, they’ll snap in and start moving properly, but then other children stop moving!

Setting the ScrollingFrame’s .Visible off and on again fixes these children, with no changes to the children or anything else. Setting the children’s .Visible off and on again also fixes them.
Doing these make the ScrollingFrame rerender and that solves it, which is why I’m suspecting this is the Engine.

Using the Scrollbar:

Using the MouseWheel:

Has anyone encountered this before? I can’t find anything about this. What on earth would cause this strange behavior? Is there a limit to how many objects a ScrollingFrame can handle?

2 Likes

Might have something to do with stacked UIListLayouts?
Some children frames had UIListLayouts to handle their children frames that had UIListLayouts as well.

When I removed those, it started scrolling again.

Currently trying to make a repro file. Can’t figure out a repro.

2 Likes

Is it a coincidence that you updated Lua learning, and then a few hours later, it’s, “how to fix scrolling frames learning?”. It’s probably just an occasional bug. There is an issue with one of your scrolling frames: the text flickers


or is it just because you were using :clone() ?

That’s because it’s loading the text each time. That’s not a bug, that’s just load time.

2 Likes