WindowDragHandlers

What a drag reports to. Each is read at event time, so the object may be rebuilt every render.

@internote/canvas-sdk/reactInterface
On this page
import { WindowDragHandlers } from '@internote/canvas-sdk/react';

#Fields

onEnd
The end: a lift, or the system taking the pointer away. cancelled is true for the second.
(event: React.PointerEvent<Element>, drag: WindowDragState, cancelled: boolean) => void
onMove
Each move of the pointer that owns the drag.
(event: React.PointerEvent<Element>, drag: WindowDragState) => void
onStart
The press. Return false to decline it — the wrong button, a disabled control — and nothing happens until the next press.
(event: React.PointerEvent<Element>, drag: WindowDragState) => boolean | void

Declared in packages/canvas-sdk/src/react/gestures/use-window-drag.ts:44.

Last updated