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

    Interface ThresholdDragOptions

    Wire up a pointer-driven drag with a movement threshold before activation. Caller controls all listeners and side effects via callbacks. Captures the pointer on the originating element so drags survive over-canvas/scroll.

    interface ThresholdDragOptions {
        onActivate?: (e: PointerEvent) => void;
        onCancel?: () => void;
        onCommit: (e: PointerEvent) => void;
        onMove: (e: PointerEvent) => void;
        threshold?: number;
    }
    Index

    Properties

    onActivate?: (e: PointerEvent) => void
    onCancel?: () => void
    onCommit: (e: PointerEvent) => void
    onMove: (e: PointerEvent) => void
    threshold?: number