Skip to content

CodeMirrorEditor.scrollTo method

CodeMirrorEditor › scrollTo

Unofficial

Scroll the editor to the given coordinates.

Signature:

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

Parameters:

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

Returns: void