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

    Interface DragGestureCtx<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 DragGestureCtx<TScratch = unknown> {
        current: DragGesturePoint;
        modifiers: ModifierState;
        phase: "active" | "pending";
        scratch: TScratch;
        start: DragGesturePoint;
    }

    Type Parameters

    • TScratch = unknown

    Hierarchy (View Summary)

    Index

    Properties

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

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

    scratch: TScratch