Jump to top of page and unfold every headings after switching to live preview

Steps to reproduce

It’s just like this bug

  1. open any note in editing mode(live preview), fold some headings and stay in somewhere of the page
  2. Ctrl+E or click to Reading mode and switch back to live preview mode again, it’ll jump to the top of the page and unfolding every headings.

However this won’t happen if switching between source code and reading mode. I can always stay at the same position after switching.

I tried on both windows and android tablet 1.8.3, both have the same issue.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Switching between editing and reading would stay at the same current position and folding level.

Actual result

After switching back to editing (live preview), it would jump to the top of the page and unfold all heading and list.

Environment

SYSTEM INFO:
Operating system: android 13 (TCL 9466X)
Obsidian version: 1.8.3 (183)
API version: v1.8.3
Login status: logged in
Language: en
Catalyst license: none
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

Can you share a sample .md file where you see this happening? That may help in sorting out the issue.

Here is a simple .md I use to repro the bug
Test.md (258 Bytes)

I made a screen record for it:
strange folding

As I tried to repro it I realize switching from reading mode to editing mode not just unfold every heading, it also unfold in a strange way as you can see in the pic, it seems the first line are still folded while others are shown.

I‘ve uploaded the sample and the issue persists after updating to 1.8.4.

I think you are describing this problem in other words