blockly > IDragTarget > shouldPreventMove

IDragTarget.shouldPreventMove() method

Returns whether the provided block or bubble should not be moved after being dropped on this component. If true, the element will return to where it was when the drag started.

Signature:

shouldPreventMove(dragElement: IDraggable): boolean;

Parameters

Parameter Type Description
dragElement IDraggable The block or bubble currently being dragged.

Returns:

boolean

Whether the block or bubble provided should be returned to drag start.