Skip to content

Commit 9372413

Browse files
authored
Merge pull request #1412 from SoftUni-Internal/fix-editor-scroll
Updated editor settings to prevent unnesessary scroll
2 parents d83fb65 + a3444e5 commit 9372413

File tree

1 file changed

+5
-1
lines changed
  • Servers/UI/OJS.Servers.Ui/ClientApp/src/components/code-editor

1 file changed

+5
-1
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/src/components/code-editor/CodeEditor.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ const CodeEditor = ({
6262
automaticLayout: true,
6363
hideCursorInOverviewRuler: true,
6464
lineHeight: 20,
65-
scrollbar: { vertical: 'hidden' },
65+
scrollbar: {
66+
vertical: 'hidden',
67+
alwaysConsumeMouseWheel: false,
68+
},
69+
scrollBeyondLastLine: false,
6670
}}
6771
onChange={onCodeChange}
6872
keepCurrentModel={false}

0 commit comments

Comments
 (0)