blockly > BlockDragger > endDrag
BlockDragger.endDrag() method
Finish a block drag and put the block back on the workspace.
Signature:
endDrag(e: PointerEvent, currentDragDeltaXY: Coordinate): void;
Parameters
Parameter | Type | Description |
---|---|---|
e | PointerEvent | The pointerup event. |
currentDragDeltaXY | Coordinate | How far the pointer has moved from the position at the start of the drag, in pixel units. |
Returns:
void