Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface LongPressOptions

    interface LongPressOptions {
        onLongPress: (
            clientX: number,
            clientY: number,
            event: PointerEvent,
        ) => boolean;
        durationMs?: number;
        slopPx?: number;
    }
    Index
    onLongPress: (clientX: number, clientY: number, event: PointerEvent) => boolean

    Called once at the hold threshold; return true when it opened an action.

    durationMs?: number

    Hold duration in ms (default 500 — the platforms' own long-press timing).

    slopPx?: number

    Movement (CSS px) that cancels the press — a finger that travelled this far is dragging, not holding (default 12, the touch click slop).