Skip to content

ScrollViewOptions

Defined in: ui/widgets/scroll-view.ts:24

optional background?: UIVisualInit

Defined in: ui/widgets/scroll-view.ts:36

Viewport background. Default: a transparent hit-target (so the wheel works).


contentSize: Vec2

Defined in: ui/widgets/scroll-view.ts:32

Pixel size of the scrollable content frame.


optional decelerationRate?: number

Defined in: ui/widgets/scroll-view.ts:44

Fling velocity fraction left after 1s of coasting. Default 0.135.


optional direction?: "both" | "vertical" | "horizontal"

Defined in: ui/widgets/scroll-view.ts:38

Scroll axis. Default ‘vertical’.


optional dragScroll?: 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).


optional node?: UINodeInit

Defined in: ui/widgets/scroll-view.ts:34

Extra viewport UINode props (its size defaults to viewportSize).


optional onScroll?: (offset) => void

Defined in: ui/widgets/scroll-view.ts:45

Vec2

void


optional parent?: number

Defined in: ui/widgets/scroll-view.ts:28


viewportSize: Vec2

Defined in: ui/widgets/scroll-view.ts:30

Pixel size of the visible window.


optional wheelSpeed?: number

Defined in: ui/widgets/scroll-view.ts:40

Wheel delta multiplier. Default 1.


world: World

Defined in: ui/widgets/scroll-view.ts:25