Steps to reproduce
- Open Obsidian Help.
- Open a long file. Obsidian shows scroll bar.
- Scroll down.
- Switch to a short file. Obsidian hides scroll bar.
- Switch back to a long file.
Expected result
Obsidian open file at the beginning. Scroll position also at the beginning.
Actual result
Obsidian open file at the beginning. But with old scroll position.
Environment
- Operating system: Windows 11 (Version 10.0.22000.282)
- Obsidian version: 0.12.19
Additional information
Look at repro video: 2021-11-09 14-23-31-Obsidian-scroll-bug.zip (2.3 MB)