diff --git a/src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts b/src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts index 3b34c85db1463cb5988f2f62c45da799c27b2719..8e71814c2aa8e3f3ff4cefa85c1eccd3e39f4c52 100644 --- a/src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts +++ b/src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts @@ -60,6 +60,7 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => { verticalHasArrows: input.verticalScrollbarHasArrows, horizontalHasArrows: false, handleMouseWheel: EditorOptions.scrollbar.defaultValue.handleMouseWheel, + alwaysConsumeMouseWheel: true, horizontalScrollbarSize: input.horizontalScrollbarHeight, horizontalSliderSize: EditorOptions.scrollbar.defaultValue.horizontalSliderSize, verticalScrollbarSize: input.verticalScrollbarWidth, diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 100626ba2f137d114d0c6063b3a8993485a654ff..9c2896240f3a3652e5ec5e4fcff260ba244f01c7 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -3359,6 +3359,11 @@ declare namespace monaco.editor { * Defaults to true. */ handleMouseWheel?: boolean; + /** + * Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events). + * Defaults to true. + */ + alwaysConsumeMouseWheel?: boolean; /** * Height in pixels for the horizontal scrollbar. * Defaults to 10 (px). @@ -3389,6 +3394,7 @@ declare namespace monaco.editor { readonly verticalHasArrows: boolean; readonly horizontalHasArrows: boolean; readonly handleMouseWheel: boolean; + readonly alwaysConsumeMouseWheel: boolean; readonly horizontalScrollbarSize: number; readonly horizontalSliderSize: number; readonly verticalScrollbarSize: number;