From dabd6c34de537e2138514f3fbc6b0961c1c0b34b Mon Sep 17 00:00:00 2001 From: Simone Cattaneo Date: Tue, 13 Nov 2018 09:07:23 +0100 Subject: [PATCH] fix: event.preventDefault() has no effect into 'will-resize' event on Windows --- atom/browser/native_window_views_win.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/native_window_views_win.cc b/atom/browser/native_window_views_win.cc index 63419095fe0ac..7b9250d17a56b 100644 --- a/atom/browser/native_window_views_win.cc +++ b/atom/browser/native_window_views_win.cc @@ -194,6 +194,8 @@ bool NativeWindowViews::PreHandleMSG(UINT message, if (prevent_default) { ::GetWindowRect(GetAcceleratedWidget(), reinterpret_cast(l_param)); + return true; // Tells Windows that the Sizing is handled. If not true, + // call to event.preventDefault() has no effect } return false; }