ScrollViewOptions
Defined in: ui/widgets/scroll-view.ts:24
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground?:UIVisualInit
Defined in: ui/widgets/scroll-view.ts:36
Viewport background. Default: a transparent hit-target (so the wheel works).
contentSize
Section titled “contentSize”contentSize:
Vec2
Defined in: ui/widgets/scroll-view.ts:32
Pixel size of the scrollable content frame.
decelerationRate?
Section titled “decelerationRate?”
optionaldecelerationRate?:number
Defined in: ui/widgets/scroll-view.ts:44
Fling velocity fraction left after 1s of coasting. Default 0.135.
direction?
Section titled “direction?”
optionaldirection?:"both"|"vertical"|"horizontal"
Defined in: ui/widgets/scroll-view.ts:38
Scroll axis. Default ‘vertical’.
dragScroll?
Section titled “dragScroll?”
optionaldragScroll?:boolean
Defined in: ui/widgets/scroll-view.ts:42
Drag/touch scrolling with a kinetic fling. Default true.
host:
ListViewHost
Defined in: ui/widgets/scroll-view.ts:27
The plugin that routes scroll input (uiPlugin).
optionalnode?:UINodeInit
Defined in: ui/widgets/scroll-view.ts:34
Extra viewport UINode props (its size defaults to viewportSize).
onScroll?
Section titled “onScroll?”
optionalonScroll?: (offset) =>void
Defined in: ui/widgets/scroll-view.ts:45
Parameters
Section titled “Parameters”offset
Section titled “offset”Returns
Section titled “Returns”void
parent?
Section titled “parent?”
optionalparent?:number
Defined in: ui/widgets/scroll-view.ts:28
viewportSize
Section titled “viewportSize”viewportSize:
Vec2
Defined in: ui/widgets/scroll-view.ts:30
Pixel size of the visible window.
wheelSpeed?
Section titled “wheelSpeed?”
optionalwheelSpeed?:number
Defined in: ui/widgets/scroll-view.ts:40
Wheel delta multiplier. Default 1.
world:
World
Defined in: ui/widgets/scroll-view.ts:25