It is the same as this bug, except I found a consistent way to reproduce it on my machine.
Switch from one file to other, long, file. Make sure the file you’re switching to opens in reading mode (if it opens in editing mode, do so by toggling to reading mode, and then switching to other file and back, such that it reopens in reading mode). Switching to reading mode after the file is already open doesn’t reproduce the bug. Then scroll down enough, so the jump to the top of the document would be large and noticable. Then switch to editing mode, and it jumps all the way to the top of the page.
I find it really annoying, since it happens often, when I read through a document, and then want to edit a small mistake I find while reading, and then the screen jumps randomly, so I lose the mistake, and have to find where I left off, breaking the flow of reading.
I am using the AppImage Obsidian version 1.1.16 on fedora linux.
Managed to reproduce it in the helper vault → with no community plugins and styles.
not a native speaker, sorry for any grammar mistakes
+1 from me to fix this. I see a number of slight variants – basically the screen scrolling / jumping scroll position when you switch from edit to reading view (or from reading to edit view).
It is super disorienting, especially on mobile. With long notes you may have scrolled down in reading view to find your content a few screens down, then want to make a minor tweak. If you have to find the position again it totally disrupts your attention and mental flow.
Obsidian → Settings → Editor → Default view for new tabs to “Reading view”
The default editing mode can be either Live Preview or Source mode (problem occurs in both)
close all doc tabs currently open
open a single markdown doc and verify it is displayed in Reading view mode by default
scroll to bottom of doc
switch to Edit Mode (command+e)
Observe Edit Mode version is displayed at top (did not follow Reading view).
What’s interesting is if you switch back to Reading view, it now is reset to top of doc also, but scrolling to bottom again and switching to Edit Mode again works correctly from there on out. This is the case for each new doc opened (in Reading view default) until toggling back and fourth once between the initial Reading view and Edit Mode is done.
Happening for me as well, default theme. Any time the window isn’t at the top of the page, switching between source and live preview mode successively moves the view down the page, rather than centering on the cursor, or anything previously on screen. Occurs with community plugins allowed, or in safe-mode. Several images in this particular note.