Arguments for scroll-related events.

interface ScrollEventArgs {
    clientHeight: number;
    distanceFromBottom: number;
    scrollHeight: number;
    scrollTop: number;
}

Hierarchy (view full)

Properties

clientHeight: number

Visible viewport height.

distanceFromBottom: number

Distance from bottom (pixels).

scrollHeight: number

Total scrollable height.

scrollTop: number

Current scroll position (pixels from top).