Skip to content

Commit d9aef57

Browse files
lunnyGiteaBot
authored andcommitted
Allow scroll propagation outside code editor (go-gitea#36502)
Fix go-gitea#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.
1 parent 2578504 commit d9aef57

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)