PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

ScrollingDirection

ScrollingFrame

ScrollingDirection

This property determines the direction scrolling is allowed. If scrolling is disallowed in a direction, the scrollbar will not appear. Defaults to XY.

What are the Different Scrolling Directions

XY (Default)

The image below demonstrates Enum.ScrollingDirection.XY:
Enum.ScrollingDirection.XY

X

The image below demonstrates Enum.ScrollingDirection.X:
Enum.ScrollingDirection.X

Y

The image below demonstrates Enum.ScrollingDirection.Y:
Enum.ScrollingDirection.Y

Enums

It can be set to several Enum/ScrollingDirection enum values, which determine how elastic scrolling behaves:

Name Description
XY (default) Canvas can be scrolled along both X and Y axes
X Canvas can only be scrolled along the X axis
Y Canvas can only be scrolled along the Y axis

See also

  • ScrollingFrame/ElasticBehavior, how elastic scrolling behaves for touch input