Taos API Reference
    Preparing search index...

    Interface CameraRegionOptions

    interface CameraRegionOptions {
        side?: "left" | "right" | "all";
        pinch?: boolean;
        lookScale?: number;
        pinchScale?: number;
        tapMaxDist?: number;
        tapMaxMs?: number;
        onLook?: (dx: number, dy: number) => void;
        onZoom?: (delta: number) => void;
        onTap?: () => void;
        onDoubleTap?: () => void;
    }
    Index

    Properties

    side?: "left" | "right" | "all"

    Which half of the screen picks up new look touches. Default 'all'.

    pinch?: boolean

    Allow two-finger pinch to fire onZoom. Default false.

    lookScale?: number

    Multiplier applied to (dx, dy) before onLook. Default 1.

    pinchScale?: number

    Multiplier applied to pinch-spread delta before onZoom. Default 0.035.

    tapMaxDist?: number

    Max travel (px) a touch can move and still count as a tap. Default 12.

    tapMaxMs?: number

    Max time (ms) a touch can be down and still count as a tap. Default 250.

    onLook?: (dx: number, dy: number) => void

    Look-drag delta callback. dx, dy already scaled by lookScale.

    onZoom?: (delta: number) => void

    Pinch-zoom delta. Positive = pinch closing (dolly in).

    onTap?: () => void

    Single-tap: touch ended as touchend within tap thresholds.

    onDoubleTap?: () => void

    Two single taps within ~350ms.