Skip to content

Fix markdown preview scroll feedback loop (#303765)#312237

Merged
mjbvz merged 2 commits into
microsoft:mainfrom
austinngan:md-changes
Apr 23, 2026
Merged

Fix markdown preview scroll feedback loop (#303765)#312237
mjbvz merged 2 commits into
microsoft:mainfrom
austinngan:md-changes

Conversation

@austinngan

Copy link
Copy Markdown
Contributor

Proposed fix for #303765:

Root cause was due to the #isScrolling flag that tried to prevent scroll feedback loops. Whenever the scrollTo() function was called while the flag was already true, it would return the cleared flag early and cause the jumpiness seen before.

Added a public isScrolling() function in order to prevent scroll events that occur from the preview to be echoed in the monitor.

Screen.Recording.2026-04-23.at.5.40.24.PM.mov
@mjbvz mjbvz enabled auto-merge April 23, 2026 23:00
@mjbvz mjbvz merged commit 891a3e6 into microsoft:main Apr 23, 2026
26 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 23, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants