IDragger.onDrag() method
Handles dragging, including calculating where the element should actually be moved to.
Signature:
onDrag(e: PointerEvent | KeyboardEvent | undefined, totalDelta: Coordinate): void;
Parameters
Parameter | Type | Description |
|---|---|---|
e | PointerEvent | KeyboardEvent | undefined | Event that continued the drag. |
totalDelta | The total distance, in pixels, that the draggable has moved since the start of the drag. |
Returns:
void