Skip to content

Commit 57ce10c

Browse files
GiteaBotlunny
andauthored
Allow scroll propagation outside code editor (#36502) (#36510)
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 <xiaolunwen@gmail.com>
1 parent 2578504 commit 57ce10c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web_src/js/features/codeeditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const baseOptions: MonacoOpts = {
3535
renderLineHighlight: 'all',
3636
renderLineHighlightOnlyWhenFocus: true,
3737
rulers: [],
38-
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
38+
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6, alwaysConsumeMouseWheel: false},
3939
scrollBeyondLastLine: false,
4040
automaticLayout: true,
4141
};

0 commit comments

Comments
 (0)