pixi-viewport
    Preparing search index...

    Class Wheel

    Plugin for handling wheel scrolling for viewport zoom.

    wheel-start({event, viewport})

    Hierarchy (View Summary)

    Index
    keyIsPressed: boolean

    Flags whether the keys required to zoom are pressed currently.

    parent: Viewport

    The viewport to which this plugin is attached.

    paused: boolean

    Flags whether this plugin has been "paused".

    • Plugin#pause
    • Plugin#resume
    smoothing?: PointData | null
    smoothingCenter?: Point | null
    smoothingCount?: number
    • Handles keypress events and set the keyIsPressed boolean accordingly

      Parameters

      • codes: string[]

        key codes that can be used to trigger zoom event

      Returns void