Parameters used to create a ScrollManager

interface ScrollManagerParams {
    scroll?: DOMPosition;
    delta?: DOMPosition;
    shouldWatch?: boolean;
    onScroll?: ((delta?) => void);
}

Properties

scroll?: DOMPosition

Current scroll position

delta?: DOMPosition

Last scroll deltas

shouldWatch?: boolean

Whether the ScrollManager should listen to the window scroll event or not

onScroll?: ((delta?) => void)

Callback to execute each time the scroll values change

Type declaration

    • (delta?): void
    • Callback to execute each time the scroll values change

      Parameters

      Returns void