ScrollingDirection not working?

On my Inventory ScrollingFrame, I have the ScrollingDirection set to Enum.ScrollingDirection.Y:
However, even with this setting, I can still scroll horizontally also. (I use a trackpad if that helps)

Any help on how to fix this behavior is appreciated!

1 Like

What is your canvas size set to? You may have it set to X still
You’ll want your canvas size to be something like 0, 0, 2, 0 so that the canvas is only larger in the Y axis.

I believe no matter the setting that mobile devices can slightly scroll in any direction but that might be if it’s still set to XY.


Hmm. I’m not sure. I know mobile devices are able to scroll in any direction a small amount, and that might also apply to trackpad, but they generally return to center. I havent ever seen anything like this before.

You could try detecting whenever the canvas position changes, and if the X changes, set it back to 0?

I’ll give this a shot, thank you!

You could also try disabling Elastic Behaviour, in case the thing I mentioned before was the issue. Hope this helped!

This solution worked! To anyone in the future browsing this thread, here’s what I did:

	ScrollingFrame.CanvasPosition =,Tools.CanvasPosition.Y)