Say I am working on a long note, and I am in Edit mode, and when I type Cmd+E the cursor jumps to the top. Typing Cmd+E again I get back to the Edit mode to the point I was before. Then typing Cmd+E the note goes back to Preview with the cursor positioned where I was in Edit mode.
Expected result
The cursor to stay at the same spot when switching between Edit and Preview.
Actual result
Typing Cmd+E again I get back to the Edit mode to the point I was before. Then typing Cmd+E the note goes back to Preview with the cursor positioned where I was in Edit mode.
I made a video, unfortunately a Gif would be 13 MB, so I saved it as an mp4 file. This forum does not accept the mp4 format, so you can view the file here.
Environment
Operating system: macOS 10.14
Obsidian version: 0.8.8
Additional information
This is an extremely annoying issue, and has been raised as a feature request here.
We had this issue a while ago and it was fixed.
I can’t quite reproduce what you are describing however I notice one thing. There is delay the first time you do cmd-e (because the text hasn’t been rendered).
Try to hit cmd-e the first time and wait. Does it scroll to the right location after a delay?