Skip to main content

Home > blockly > Scrollbar > set

Scrollbar.set() method

Set the scrollbar handle's position.

Signature:

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

Parameters

ParameterTypeDescription
valuenumberThe content displacement, relative to the view in pixels.
updateMetricsboolean(Optional) Whether to update metrics on this set call. Defaults to true.

Returns:

void