Skip to content

Commit 91cf906

Browse files
committed
Fix compilation
1 parent 185d71b commit 91cf906

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
6060
verticalHasArrows: input.verticalScrollbarHasArrows,
6161
horizontalHasArrows: false,
6262
handleMouseWheel: EditorOptions.scrollbar.defaultValue.handleMouseWheel,
63+
alwaysConsumeMouseWheel: true,
6364
horizontalScrollbarSize: input.horizontalScrollbarHeight,
6465
horizontalSliderSize: EditorOptions.scrollbar.defaultValue.horizontalSliderSize,
6566
verticalScrollbarSize: input.verticalScrollbarWidth,

src/vs/monaco.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,6 +3359,11 @@ declare namespace monaco.editor {
33593359
* Defaults to true.
33603360
*/
33613361
handleMouseWheel?: boolean;
3362+
/**
3363+
* Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
3364+
* Defaults to true.
3365+
*/
3366+
alwaysConsumeMouseWheel?: boolean;
33623367
/**
33633368
* Height in pixels for the horizontal scrollbar.
33643369
* Defaults to 10 (px).
@@ -3389,6 +3394,7 @@ declare namespace monaco.editor {
33893394
readonly verticalHasArrows: boolean;
33903395
readonly horizontalHasArrows: boolean;
33913396
readonly handleMouseWheel: boolean;
3397+
readonly alwaysConsumeMouseWheel: boolean;
33923398
readonly horizontalScrollbarSize: number;
33933399
readonly horizontalSliderSize: number;
33943400
readonly verticalScrollbarSize: number;

0 commit comments

Comments
 (0)