@wq2/ui
    Preparing search index...

    Interface MovableOptions

    interface MovableOptions {
        dragThreshold?: number;
        onMoved?: () => void;
        origin: MovableOrigin;
        canDrag?(e: PointerEvent): boolean;
    }
    Index

    Properties

    dragThreshold?: number

    Threshold for actually moving the object, checks if deltaX + deltaY < dragThreshold

    5
    
    onMoved?: () => void

    A callback which is called on the pointerDown event

    Where this panel will originate from.

    { x: "auto", y: "auto" }
    

    Methods

    • Parameters

      • e: PointerEvent

        the pointer event

      Returns boolean

      If we should start dragging the object.