Micrio Client - v6.0.0
    Preparing search index...

    Type Alias EventStateVars

    Internal state variables used by the Events controller.

    type EventStateVars = {
        dbltap: { lastTapped: number };
        drag: { prev: number[] | undefined; start: number[] };
        pinch: {
            image: MicrioImage | undefined;
            sDst: number;
            wasPanning: boolean;
        };
        updates: { stack: string[]; to: number };
    }
    Index

    Properties

    dbltap: { lastTapped: number }

    Double-tap state

    Type Declaration

    • lastTapped: number

      Timestamp of the last tap.

    drag: { prev: number[] | undefined; start: number[] }

    Dragging state

    Type Declaration

    • prev: number[] | undefined

      Previous pointer coordinates [x, y] during drag.

    • start: number[]

      Start coordinates and timestamp [x, y, time] of the drag.

    pinch: { image: MicrioImage | undefined; sDst: number; wasPanning: boolean }

    Pinching state

    Type Declaration

    • image: MicrioImage | undefined

      The image being pinched (relevant for split-screen).

    • sDst: number

      Initial distance between pinch points.

    • wasPanning: boolean

      Was panning active before pinching started?

    updates: { stack: string[]; to: number }

    State for debouncing 'update' events.

    Type Declaration

    • stack: string[]

      Stack of event types that triggered the update.

    • to: number

      Timeout ID for the debounced update.