You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rich-text editor scroll completely frozen on VS Code 1.123+ (Chromium 148): .mdx-content overscroll-behavior cuts the scroll chain since Chromium 145 #19
Since VS Code 1.123 (released 2026-06-03), the rich-text editor no longer scrolls with the wheel/trackpad: the document is completely frozen. Dragging the scrollbar still works, and source mode scrolls fine (CodeMirror has its own scroller). On VS Code ≤1.122 the same documents scroll normally — nothing changed in the extension (1.3.1 in both cases).
macOS 26 (also reproducible on a plain Chromium replica, see bisect below)
VS Code 1.123.x = Electron 42 / Chromium 148 (1.122 was Electron 39 / Chromium 142 — a 6-milestone jump in one release)
markdown-docs 1.3.1
Root cause
.mdx-content (the contenteditable) is declared as a nested scroll container with overflow-y: auto (MDXEditorWrapper.css#L128) and overscroll-behavior: contain (L121, re-applied with !important by the blanket [contenteditable='true'] rule at L1630-1637). But its scrollable extent is zero — the element that actually overflows is the wrapper .mdxeditor-root-contenteditable (L1657-1662).
Chromium M144 shipped "Respect overscroll-behavior on non-scrollable scroll containers" (https://developer.chrome.com/release-notes/144, chromestatus feature 5129635997941760): a scroll container with overscroll-behavior != auto now cuts the scroll chain even when it cannot scroll. So the wheel gesture latches onto .mdx-content, the chain is cut, and the delta never reaches the real scroller. Before M144, browsers skipped the non-scrollable container and the wrapper scrolled.
Empirical bisect
Replica of the exact CSS cascade, driven with trusted wheel events:
Chromium
wheel scroll result
129
1000/1000 px (OK)
140
1000/1000 px (OK)
145
0 px — frozen
148 (VS Code 1.123)
17/1000 px — frozen
With the fix below, full document depth is reachable again on Chromium 148 (verified 9808/9808 px).
Fix
.mdx-content must not be a scroll container:
drop overflow-y: auto and overscroll-behavior: contain from the .mdx-content block;
remove [contenteditable='true'] from the blanket containment selector group (it re-applies contain with !important to the same element).
Scroll containment toward the VS Code workbench is still guaranteed by the body rule and by the real scroller rule (.mdxeditor-root-contenteditable), both untouched. Search scroll-to-match and comment-sidebar scroll-to-highlight already target the wrapper as the scroller, so they keep working.
PR with the fix incoming. Tested on VS Code 1.123.2/macOS: scrolling restored, :comment insertion/navigation and Cmd+F unaffected.
Activity