Skip to main content

blockly > dragging > BlockDragStrategy > drag

dragging.BlockDragStrategy.drag() method

Moves the block and updates any connection previews.

Signature:

drag(newLoc: Coordinate, e?: PointerEvent | KeyboardEvent): void;

Parameters

Parameter

Type

Description

newLoc

Coordinate

e

PointerEvent | KeyboardEvent

(Optional)

Returns:

void