Skip to content

Editor.scrollTo method

Editor › scrollTo

Official

Scroll to a specific position.

Signature:

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

Parameters:

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

Returns: void

Since: 0.11.11

Example:

editor.scrollTo(12, 34);