Skip to main content

Home > blockly > Scrollbar > setHandlePosition

Scrollbar.setHandlePosition() method

Set the offset of the scrollbar's handle from the scrollbar's position, and change the SVG attribute accordingly.

Signature:

setHandlePosition(newPosition: number): void;

Parameters

ParameterTypeDescription
newPositionnumberThe new scrollbar handle offset in CSS pixels.

Returns:

void