зеркало из https://github.com/electron/electron.git
fix: first mouse not dragging BrowserView (#31062)
This commit is contained in:
Родитель
da921e680f
Коммит
919fd0f28d
|
@ -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 &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче