blockly > dragging > Dragger > onDrag

dragging.Dragger.onDrag() method

Handles calculating where the element should actually be moved to.

Signature:

onDrag(e: PointerEvent, totalDelta: Coordinate): void;

Parameters

Parameter Type Description
e PointerEvent
totalDelta Coordinate The total amount in pixel coordinates the mouse has moved since the start of the drag.

Returns:

void