Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.
Checklist
[x] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[x] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Describe the bug
Now I have client A and client B.
When I move both client A's cursor in a newline in a codeblock.
Now I cannot move client B's cursor at that new line.
Then I switch back to client A, I find the position of the cursor is not right and I cannot move it to that new line.
Checklist
Describe the bug Now I have client A and client B.
To Reproduce Steps to reproduce the behavior:
pnpm install && pnpm dev
Expected behavior Cursor at right position.
Screenshots If applicable, add screenshots to help explain your problem.
https://user-images.githubusercontent.com/10047788/171437451-b1e58677-e967-4555-bb30-71d649bd982a.mov
Environment Information