Skip to content

1681-engine / ui / ScrollViewOptions

Interface: ScrollViewOptions ​

Defined in: src/ui/ScrollView.ts:6

Extended by ​

Properties ​

barColor? ​

ts
optional barColor?: number | null;

Defined in: src/ui/ScrollView.ts:14

The scroll bar's colour; null hides it (default white at 0.4 alpha).


barWidth? ​

ts
optional barWidth?: number;

Defined in: src/ui/ScrollView.ts:15


dragSlop? ​

ts
optional dragSlop?: number;

Defined in: src/ui/ScrollView.ts:12

How far a press must move before it is a drag instead of a tap (default 6 px).


height ​

ts
height: number;

Defined in: src/ui/ScrollView.ts:8


wheelStep? ​

ts
optional wheelStep?: number;

Defined in: src/ui/ScrollView.ts:10

Pixels a wheel notch scrolls at most (default 48).


width ​

ts
width: number;

Defined in: src/ui/ScrollView.ts:7

Released under the MIT License.