Skip to main content

blockly > KeyboardMover > setMoveDistance

KeyboardMover.setMoveDistance() method

Sets the distance by which an object will be moved.

Signature:

setMoveDistance(stepDistance: number): void;

Parameters

Parameter

Type

Description

stepDistance

number

The distance in workspace coordinates that each move should move elements on the workspace by.

Returns:

void