From 545370cf0f5704e627d308c12a9b779fa8ae7fe6 Mon Sep 17 00:00:00 2001 From: Shahar Harari Date: Tue, 3 Nov 2020 12:23:04 +0200 Subject: [PATCH] [Fix] Don't show transparent overlay when clicking inside webviews Signed-off-by: Shahar Harari --- packages/plugin-ext/src/main/browser/webview/webview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-ext/src/main/browser/webview/webview.ts b/packages/plugin-ext/src/main/browser/webview/webview.ts index fece6f0e77fa2..ff2d3b61e623c 100644 --- a/packages/plugin-ext/src/main/browser/webview/webview.ts +++ b/packages/plugin-ext/src/main/browser/webview/webview.ts @@ -320,7 +320,7 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget { protected dispatchMouseEvent(type: string, data: MouseEvent): void { const domRect = this.node.getBoundingClientRect(); - this.node.dispatchEvent(new MouseEvent(type, { + document.dispatchEvent(new MouseEvent(type, { ...data, clientX: domRect.x + data.clientX, clientY: domRect.y + data.clientY