Skip to content

EditorView.moveVertically method

EditorView › moveVertically

Official

Move a cursor position vertically.

Signature:

moveVertically(start: SelectionRange, forward: boolean, distance?: number | undefined): SelectionRange

Parameters:

Parameter Type Description
start SelectionRange The start selection range.
forward boolean Whether to move forward.
distance? number | undefined The distance in pixels.

Returns: SelectionRangeThe new selection range.