fix scrollbar bug

This commit is contained in:
Mathew Pareles 2025-01-07 22:48:32 -08:00
parent 9e852355d9
commit 910ed7faa9

View file

@ -322,12 +322,14 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars
wordWrap: 'off',
scrollbar: {
ignoreHorizontalScrollbarInContentHeight: true,
alwaysConsumeMouseWheel: false,
...!SHOW_SCROLLBARS ? {
vertical: 'hidden',
horizontal: 'hidden',
verticalScrollbarSize: 0,
horizontalScrollbarSize: 0,
// horizontal: 'hidden',
// horizontalScrollbarSize: 0,
} : {
verticalScrollbarSize: 8,
horizontalScrollbarSize: 8,