-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with cursor positioning and scroll behavior during dispatch
#1473
Comments
If you replace the entire document, that will reset the editor's scroll position. In most cases, you really want to make the most minimal change possible, rather than a full reset like that. It sounds like you're not actually loading a new document, if you expect the old cursor/scroll position to still make sense, but only modifying the current document. |
In most cases, I apply only the minimal changes possible. However, due to network delays, there are times when the entire document is replaced. At those moments, I also update the cursor position using the |
The |
But, it seems that there are instances where the scroll jumps to the top and then returns to the current position. |
Describe the issue
I'm developing the collaborative markdown editor with codemirror.
video.mp4
However, there are following issues.
Browser and platform
Chrome, macOS (But, maybe all browsers and platforms)
Reproduction link
https://github.com/devleejb/codemirror-dispatch-test
The text was updated successfully, but these errors were encountered: