388 B
388 B
setScrollAmount
Sets the maximum offset it is allowed to scroll
Parameters:
numbermaximum y offset
Returns:
frameThe frame being used
Usage:
- Creates a new base frame and makes it scrollable and sets the maximum amount to 25
local myFrame = basalt.createFrame():setScrollable():setScrollAmount(25)
<frame scrollAmount="25"></frame>