foambubble / foam

A personal knowledge management and sharing system for VSCode
https://foambubble.github.io/
Other
15.06k stars 647 forks source link

Issue Scrolling Markdown Preview with Transcluded Files included #1329

Open sahil48 opened 5 months ago

sahil48 commented 5 months ago

Describe the bug

I added several transcluded markdown files one after another in my document. When I try to scroll along the markdown preview, the markdown preview attempts to keep the scroll position of markdown editor and preview in sync. Both get confused, meaning that the editor will go down and up-again to try to keep up. Sometimes, it is impossible to scroll down the preview. Before I can scroll down further, the preview goes back up in an attempt to match the editor position.

Small Reproducible Example

No response

Steps to Reproduce the Bug or Issue

  1. Create several long documents
  2. Transclude them into another markdown file with card-embed style (showing full content), one after the other using ![[document_name]] syntax
  3. Open the Markdown Preview
  4. Attempt to scroll from the preview

Expected behavior

I expect to be able to scroll through the entire preview. I expect the markdown preview not to jump up and down. I expect that the scrolling of editor does not continue until entire transcluded document passes the vertical center of the preview window.

Screenshots or Videos

2024-02-04_1949-zGjN

Operating System Version

Windows 11

Visual Studio Code Version

1.85.2

Additional context

No response

sahil48 commented 4 months ago

Two finger scroll work but using up and down arrow key or mouse wheel exhibit the behavior described above.