From 919fd0f28dc6a3a913d131738dda860bc058e540 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 23 Sep 2021 23:35:12 +0200 Subject: [PATCH] fix: first mouse not dragging BrowserView (#31062) --- shell/browser/native_browser_view_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/browser/native_browser_view_mac.mm b/shell/browser/native_browser_view_mac.mm index e42342c965..0fa1fa9aaf 100644 --- a/shell/browser/native_browser_view_mac.mm +++ b/shell/browser/native_browser_view_mac.mm @@ -62,6 +62,10 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask = return NO; } +- (BOOL)acceptsFirstMouse:(NSEvent*)event { + return YES; +} + - (BOOL)shouldIgnoreMouseEvent { NSEventType type = [[NSApp currentEvent] type]; return type != NSEventTypeLeftMouseDragged &&