I have the attached diagram. When I put the cursor towards the end of the code, the entire mermaid preview scrolls out of the window.
mermaid-bug.md
Steps to reproduce
- Load diagram
- Enable preview window in VS Code
- Place cursor on the last line of Mermaid code in the code window
- Use cursor keys or mouse wheel to scroll down 1 line
Observed behaviour
Entire (almost) preview diagram scrolls off the window and is no longer visible.
Desired behaviour
The preview should never scroll off the end of the diagram so aggressively that it becomes mostly invisible.
Notes
I do not want to disable preview scroll sync as it is useful for general MD files.
System
Mac OS X Tahoe 26.4.1
VS Code Version 1.117.0 (Universal)
Mermaid Chart extension Version 2.6.4
I have the attached diagram. When I put the cursor towards the end of the code, the entire mermaid preview scrolls out of the window.
mermaid-bug.md
Steps to reproduce
Observed behaviour
Entire (almost) preview diagram scrolls off the window and is no longer visible.
Desired behaviour
The preview should never scroll off the end of the diagram so aggressively that it becomes mostly invisible.
Notes
I do not want to disable preview scroll sync as it is useful for general MD files.
System
Mac OS X Tahoe 26.4.1
VS Code Version 1.117.0 (Universal)
Mermaid Chart extension Version 2.6.4