Skip to content

CodeMirrorEditor.scrollTo method

CodeMirrorEditor › scrollTo

Unofficial

Scroll the editor to the given coordinates.

Signature:

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

Parameters:

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

Returns: void