weasel API - v0.8.0
    Preparing search index...

    Interface UseHandToolOptions

    interface UseHandToolOptions {
        axis?: "x" | "y" | "both";
        inertia?: false | HandToolInertiaConfig;
    }
    Index

    Properties

    Properties

    axis?: "x" | "y" | "both"

    Which axes the drag responds to. Default 'both'.

    • 'both' — pan both axes (default).
    • 'x' — drag only changes view.x. Inertia (if enabled) also stays on x.
    • 'y' — drag only changes view.y. Inertia stays on y.

    Locks drag panning to a single axis. The former useWheelPanTool / useWheelZoomTool / useKeyboardZoomTool axis option is dissolved.

    inertia?: false | HandToolInertiaConfig