Skip to content

Commit

Permalink
fix: first mouse not dragging BrowserView (#31098)
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 27, 2021
1 parent 4c4d29e commit b505de0
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 @@ -62,6 +62,10 @@ - (BOOL)mouseDownCanMoveWindow {
return NO;
}

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

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

0 comments on commit b505de0

Please sign in to comment.