Stay organized with collections Save and categorize content based on your preferences.

blockly > BlockDragger > endDrag

BlockDragger.endDrag() method

Finish a block drag and put the block back on the workspace.

Signature:

endDrag(e: Event, currentDragDeltaXY: Coordinate): void;

Parameters

Parameter Type Description
e Event The mouseup/touchend event.
currentDragDeltaXY Coordinate How far the pointer has moved from the position at the start of the drag, in pixel units.

Returns:

void