blockly > ScrollbarPair > set

ScrollbarPair.set() method

Set the handles of both scrollbars.

Signature:

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

Parameters

Parameter Type Description
x number The horizontal content displacement, relative to the view in pixels.
y number The vertical content displacement, relative to the view in pixels.
updateMetrics boolean Whether to update metrics on this set call. Defaults to true.

Returns:

void