Opening then closing modal may cause the editor scrolling to the top

Steps to reproduce

  • Open a long note with many images, set editor mode to Live Preview

    Use “CZ2006.Finals.Revision.md” in Archive.zip (3.7 MB) as example

  • Scroll to the bottom of the note, click the last line to set cursor there

  • Open settings modal, select a section with input, like “Core Plugins”

  • Press Tab key to unfocus the input

  • Close settings modal

Expected result

Ths view and cursor should keep the position before opening the settings modal

Actual result

The editor has scrolled to the top. This happens when Tab is pressed, before closing the modal.

Environment

  • Operating system: macOS 12.3
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.14.5
    Installer version: v0.12.4
    Operating system: Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101 21.4.0
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: light
    Community theme: none
    Snippets enabled: 1
    Safe mode: on

RECOMMENDATIONS:
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.


Additional information

obsidian-scroll-to-top-issue

thanks

will be fixed 0.14.7

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.