blockly > Events > BlockMove > setReason
Events.BlockMove.setReason() method
Set the reason for a move event.
Signature:
setReason(reason: string[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
reason | string[] | Why is this move happening? 'drag', 'bump', 'snap', ... |
Returns:
void