Function onGesture

    • Run grab/drop on the rising/falling edge of active.

      Parameters

      • active: Read<boolean>
      • edges: { drop?: () => void; grab?: () => void }

      Returns () => void