Skip to main content

Home > 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

ParameterTypeDescription
ePointerEvent
totalDeltaCoordinateThe total amount in pixel coordinates the mouse has moved since the start of the drag.

Returns:

void