Interface ScrollbarInfo

An info about the current state of a scrollbar.

interface ScrollbarInfo {
    percentage: number;
    ratio: number;
}

Properties

Properties

percentage: number

A scroll percentage of a container, determines a position of a scrollbar handle.

Percentage can be less than 0 and greater than 1 during an overscroll.

ratio: number

A container bounding rect size divided by a container scroll size, determines the size of a scrollbar handle, so it reflects the amount of visible content.