The preview should only be scrolled when the change in the editor originated locally. Look at the `updateListener` in `Editor.svelte`. Check [Y-codemirror docs](https://github.com/yjs/y-codemirror.next) on how to detect if an update is local or not.
The preview should only be scrolled when the change in the editor originated locally.
Look at the
updateListenerinEditor.svelte. Check Y-codemirror docs on how to detect if an update is local or not.