Skip to content
pixi-silk
GitHub repository
Interface

ScrollViewOptions

import type { ScrollViewOptions } from 'pixi-silk/ui/panel';

Options of ScrollView.

Properties#

PropertyTypeDescriptionDefined in
contentHeight?numberHeight of what scrolls. Set it later with ScrollView.contentHeight. Default 0.ui/panels/ScrollView.ts:22
drag?"none" | "touch" | "all"Which pointers drag the content: touch (fingers and pens, default), all, or none. Mice scroll with the wheel and the scrollbar.ui/panels/ScrollView.ts:27
height?numberView height. Default 320.ui/panels/ScrollView.ts:20
overscroll?booleanStretch past the ends and spring back. Default true.ui/panels/ScrollView.ts:29
theme?Partial<PanelTheme>Colours that replace parts of PANEL_THEME. The view only draws the scrollbar.ui/panels/ScrollView.ts:31
ticker?Ticker | nullTicker driving the motion. Default Ticker.shared. null for manual ScrollView.tick.ui/panels/ScrollView.ts:33
width?numberView width. Default 240.ui/panels/ScrollView.ts:18