UIScrollEvent

class UIScrollEvent

extends UIComponentEvent<UIScrollContainer>

Event that is emitted when the user scrolls up or down in a `UIScrollContainer.

Constructor

(name: string, source: UIScrollContainer, inner?: ManagedEvent, event?: any): UIScrollEvent

.horizontalVelocity

number

Horizontal scrolling velocity (screen widths per second).

.verticalVelocity

number

Horizontal scrolling velocity (screen heights per second).

.scrolledDown

boolean

True if (last) scrolled down.

.scrolledUp

boolean

True if (last) scrolled up.

.scrolledLeft

boolean

True if (last) scrolled left.

.scrolledRight

boolean

True if (last) scrolled right.

.atTop

boolean

True if the UIScrollContainer is scrolled to the top.

.atBottom

boolean

True if the UIScrollContainer is scrolled to the bottom.

.atLeft

boolean

True if the UIScrollContainer is scrolled to the left.

.atRight

boolean

True if the UIScrollContainer is scrolled to the right.

.event

any

Inherited from UIComponentEvent.event.

.source

TComponent

Inherited from ComponentEvent.source.

.inner

ManagedEvent

Inherited from ComponentEvent.inner.

.name

string

Inherited from ManagedEvent.name.

.freeze()

(): Readonly<this>

Inherited from ManagedEvent.freeze.