HorizontalMovable||doc136548

September 20, 2022

Format

ScrollableView.HorizontalMovable

Describe

Whether the sliding area can slide in the horizontal direction. The default value is true.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--According to the name to get the ScrollableView control for testing
local scrollView = APIRootWindow.APIScrollableView

--Set whether the horizontal direction of the sliding area can be swiped
scrollView.HorizontalMovable = false