UIScrollEvent

class UIScrollEvent

extends UIComponentEvent

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

Constructor

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

.source

UIScrollContainer

The source UIScrollContainer instance.

.horizontalVelocity

number

Horizontal scrolling velocity (screens widths per second).

.verticalVelocity

number

Horizontal scrolling velocity (screens 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.

.inner

ManagedEvent

Inherited from ComponentEvent.inner.

.name

string

Inherited from ManagedEvent.name.

.freeze()

(): Readonly<this>

Inherited from ManagedEvent.freeze.