blockly > Scrollbar > set

Scrollbar.set() method

Set the scrollbar handle's position.

Signature:

set(value: number, updateMetrics?: boolean): void;

Parameters

Parameter Type Description
value number The content displacement, relative to the view in pixels.
updateMetrics boolean (Optional) Whether to update metrics on this set call. Defaults to true.

Returns:

void