Skip to content

Cm5Editor.scrollTo method

Cm5Editor › scrollTo

Unofficial

Scrolls the editor to the given coordinates.

Signature:

scrollTo(x?: number | null | undefined, y?: number | null | undefined): void

Parameters:

Parameter Type Description
x? number | null | undefined The horizontal scroll position.
y? number | null | undefined The vertical scroll position.

Returns: void