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:

ParameterTypeDescription
x?number | null | undefinedThe horizontal scroll position.
y?number | null | undefinedThe vertical scroll position.

Returns: void