Skip to main content

Home > blockly > ScrollbarPair > set

ScrollbarPair.set() method

Set the handles of both scrollbars.

Signature:

set(x: number, y: number, updateMetrics: boolean): void;

Parameters

ParameterTypeDescription
xnumberThe horizontal content displacement, relative to the view in pixels.
ynumberThe vertical content displacement, relative to the view in pixels.
updateMetricsbooleanWhether to update metrics on this set call. Defaults to true.

Returns:

void