Resistance||doc136553

September 20, 2022

Format

ScrollableView.Resistance

Describe

The sliding resistance of the sliding area. The larger the value, the faster the speed decay after the finger is lifted. The range is between [0, 1].

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 the sliding of the sliding area
scrollView.Resistance = 0