Editor.scrollTo method
Editor › scrollTo
Official
Scroll to a specific position.Signature:
scrollTo(x?: null | number, y?: null | number): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| x? | null | number | The horizontal scroll position. |
| y? | null | number | The vertical scroll position. |
Returns: void
Since: 0.11.11
Example:
editor.scrollTo(12, 34);