Skip to content

EditorView.scrollSnapshot method

EditorView › scrollSnapshot

Official

Return an effect that resets the editor to its current scroll position.

Signature:

scrollSnapshot(): StateEffect<unknown>

Returns: StateEffect<unknown>The scroll snapshot effect.