From e377da989f4ddb719b14f89703283134309a4e97 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 31 Jan 2026 22:03:38 -0800 Subject: [PATCH] Allow scroll propagation outside code editor (#36502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #28479 When scrolling inside the editor and the editor has already reached the end of its scroll area, the browser does not continue scrolling. This is inconvenient because users must move the cursor out of the editor to scroll the page further. This PR enables automatic switching between the editor’s scroll and the browser’s scroll, allowing seamless continuous scrolling. --- web_src/js/features/codeeditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/codeeditor.ts b/web_src/js/features/codeeditor.ts index 97f45ef708..e47a678bda 100644 --- a/web_src/js/features/codeeditor.ts +++ b/web_src/js/features/codeeditor.ts @@ -35,7 +35,7 @@ const baseOptions: MonacoOpts = { renderLineHighlight: 'all', renderLineHighlightOnlyWhenFocus: true, rulers: [], - scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6}, + scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6, alwaysConsumeMouseWheel: false}, scrollBeyondLastLine: false, automaticLayout: true, wrappingIndent: 'none',