pixi-viewport
    Preparing search index...

    Class Pinch

    Plugin for enabling two-finger pinching (or dragging).

    Hierarchy (View Summary)

    Index
    active: boolean = false

    Flags whether this plugin is active, i.e. a pointer is down on the viewport.

    lastCenter?: PointData | null
    moved: boolean = false

    Options used to initialize this plugin.

    parent: Viewport

    The viewport to which this plugin is attached.

    paused: boolean

    Flags whether this plugin has been "paused".

    • Plugin#pause
    • Plugin#resume
    pinching: boolean = false

    Flags whether the viewport is being pinched.

    • Called on each tick

      Parameters

      • _elapsed: number

        time in milliseconds since last update

      Returns void