Skip to content

Cm5Editor.scrollTo method

Cm5Editor › scrollTo

Unofficial

Scrolls the editor to the given coordinates.

Signature:

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

Parameters:

ParameterTypeDescription
x?null | numberThe horizontal scroll position.
y?null | numberThe vertical scroll position.

Returns: void