fix: delayed bounds when moving/resizing and preventing default (#34282)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-05-19 13:57:12 +02:00
committed by GitHub
parent f464c58fdc
commit 38dd2a7c91

View File

@@ -294,6 +294,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
&prevent_default);
if (prevent_default) {
::GetWindowRect(hwnd, reinterpret_cast<RECT*>(l_param));
pending_bounds_change_.reset();
return true; // Tells Windows that the Sizing is handled.
}
return false;
@@ -332,6 +333,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
NotifyWindowWillMove(dpi_bounds, &prevent_default);
if (!movable_ || prevent_default) {
::GetWindowRect(hwnd, reinterpret_cast<RECT*>(l_param));
pending_bounds_change_.reset();
return true; // Tells Windows that the Move is handled. If not true,
// frameless windows can be moved using
// -webkit-app-region: drag elements.