The ScrollListener class sets up a listener that handles window scroll events.

Hierarchy

  • ScrollListener

Constructors

Properties

Methods

Constructors

Properties

active: undefined | null | (() => void)

Type declaration

    • (): void
    • Protected

      On each animation frame, as long as the listener is active, run the update method.

      Returns void

callback: ((top) => void)

Type declaration

    • (top): void
    • Parameters

      • top: number

      Returns void

ticking: boolean

Methods

Generated using TypeDoc v0.24.8