mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
fix scrollbar bug
This commit is contained in:
parent
9e852355d9
commit
910ed7faa9
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue