Skip to content

Commit

Permalink
fix: improved event flow management related to 'will-resize' event on…
Browse files Browse the repository at this point in the history
… Windows
  • Loading branch information
neo291 committed Nov 21, 2018
1 parent fb52fdc commit c7e36b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/browser/native_window_views_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
if (prevent_default) {
::GetWindowRect(GetAcceleratedWidget(),
reinterpret_cast<RECT*>(l_param));
return true; // Tells Windows that the Sizing is handled. If not true,
// call to event.preventDefault() has no effect
}
return false;
}
Expand Down

0 comments on commit c7e36b4

Please sign in to comment.