Skip to content

Commit

Permalink
fix: first mouse not dragging BrowserView (#31100)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Sep 30, 2021
1 parent 844d104 commit 097fd4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/browser/native_browser_view_mac.mm
Expand Up @@ -63,6 +63,10 @@ - (BOOL)mouseDownCanMoveWindow {
[self.window respondsToSelector:@selector(performWindowDragWithEvent:)];
}

- (BOOL)acceptsFirstMouse:(NSEvent*)event {
return YES;
}

- (BOOL)shouldIgnoreMouseEvent {
NSEventType type = [[NSApp currentEvent] type];
return type != NSEventTypeLeftMouseDragged &&
Expand Down

0 comments on commit 097fd4c

Please sign in to comment.