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