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

    Interface DragGestureEndCtx<TScratch>

    Live gesture context handed to lifecycle callbacks. Within callbacks, ctx reflects the moment the callback fires (e.g. ctx.phase is 'active' inside onActivate, even though the move that triggered it was during 'pending').

    interface DragGestureEndCtx<TScratch = unknown> {
        current: DragGesturePoint;
        modifiers: ModifierState;
        phase: "active" | "pending";
        scratch: TScratch;
        start: DragGesturePoint;
        wasSubThreshold: boolean;
    }

    Type Parameters

    • TScratch = unknown

    Hierarchy (View Summary)

    Index

    Properties

    modifiers: ModifierState
    phase: "active" | "pending"

    'pending' or 'active'. Never 'idle' inside a callback.

    scratch: TScratch
    wasSubThreshold: boolean

    True if phase never reached 'active'. Wrappers without thresholdReached always see false here (their gesture activates at start()).