From 57ce10c0caa43b04551565ffef39d5c2a4d5e7ce Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 2 Feb 2026 01:33:23 +0800 Subject: [PATCH] Allow scroll propagation outside code editor (#36502) (#36510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport #36502 by @lunny 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. Co-authored-by: Lunny Xiao --- 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 a09785f0ab..24af0d72c3 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, };