From 5f6d740b2e6593044ebb387765c17220990f5b93 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 24 May 2024 13:22:56 +0200 Subject: [PATCH] don't always consume mouse wheel (#213383) for chat widget (list) and for chat input editor (actually all simple editor cases) --- src/vs/workbench/contrib/chat/browser/chatWidget.ts | 1 + .../contrib/codeEditor/browser/simpleEditorOptions.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatWidget.ts b/src/vs/workbench/contrib/chat/browser/chatWidget.ts index 6b19f886cf1dd..eaa5aa42f87d3 100644 --- a/src/vs/workbench/contrib/chat/browser/chatWidget.ts +++ b/src/vs/workbench/contrib/chat/browser/chatWidget.ts @@ -455,6 +455,7 @@ export class ChatWidget extends Disposable implements IChatWidget { { identityProvider: { getId: (e: ChatTreeItem) => e.id }, horizontalScrolling: false, + alwaysConsumeMouseWheel: false, supportDynamicHeights: true, hideTwistiesOfChildlessElements: true, accessibilityProvider: this.instantiationService.createInstance(ChatAccessibilityProvider), diff --git a/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts b/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts index b4f6826502630..f7660482b85fa 100644 --- a/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts +++ b/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts @@ -25,7 +25,8 @@ export function getSimpleEditorOptions(configurationService: IConfigurationServi hideCursorInOverviewRuler: true, selectionHighlight: false, scrollbar: { - horizontal: 'hidden' + horizontal: 'hidden', + alwaysConsumeMouseWheel: false }, lineDecorationsWidth: 0, overviewRulerBorder: false,