mirror of
https://github.com/electron/electron.git
synced 2026-02-01 18:55:08 -05:00
web_contents can't be null
This commit is contained in:
@@ -993,9 +993,6 @@ NativeWindowMac::NativeWindowMac(
|
||||
if ([[event window] windowNumber] != [window_ windowNumber])
|
||||
return event;
|
||||
|
||||
if (!web_contents)
|
||||
return event;
|
||||
|
||||
if (!began && (([event phase] == NSEventPhaseMayBegin) ||
|
||||
([event phase] == NSEventPhaseBegan))) {
|
||||
this->NotifyWindowScrollTouchBegin();
|
||||
|
||||
Reference in New Issue
Block a user