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:

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

Returns: void