Skip to main content

Function: canScrollBy()

canScrollBy(element, deltaX, deltaY): boolean

Defined in: src/ui/pageLock/index.ts:24

Whether an element can scroll further by a distance (positive: right or down), along one axis.

Parameters​

element​

Element

deltaX​

number

deltaY​

number

Returns​

boolean

Example​

canScrollBy(panel, 0, 10); // true while the panel isn't scrolled to the bottom