EditorView.moveVertically method
EditorView › moveVertically
Official
Move a cursor position vertically.Signature:
moveVertically(start: SelectionRange, forward: boolean, distance?: number | undefined): SelectionRangeParameters:
| Parameter | Type | Description |
|---|---|---|
| start | SelectionRange | The start selection range. |
| forward | boolean | Whether to move forward. |
| distance? | number | undefined | The distance in pixels. |
Returns: SelectionRange — The new selection range.