Skip to main content

Home > blockly > IDragger > onDrag

IDragger.onDrag() method

Handles dragging, including calculating where the element should actually be moved to.

Signature:

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

Parameters

ParameterTypeDescription
ePointerEventPointerEvent that continued the drag.
totalDeltaCoordinateThe total distance, in pixels, that the mouse has moved since the start of the drag.

Returns:

void