From c07016e1d18ee744c3e590189fedc780069d9ca3 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 6 Oct 2021 09:22:06 +0900 Subject: [PATCH] fix: return HTNOWHERE in resize hit test to allow draggable regions to kick in when required (#31300) Co-authored-by: Samuel Attard --- shell/browser/ui/views/frameless_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/ui/views/frameless_view.cc b/shell/browser/ui/views/frameless_view.cc index 70b8af2a6d220..76a8d21fe038d 100644 --- a/shell/browser/ui/views/frameless_view.cc +++ b/shell/browser/ui/views/frameless_view.cc @@ -40,10 +40,10 @@ int FramelessView::ResizingBorderHitTest(const gfx::Point& point) { : false; // https://github.com/electron/electron/issues/611 - // If window isn't resizable, we should always return HTCLIENT, otherwise the + // If window isn't resizable, we should always return HTNOWHERE, otherwise the // hover state of DOM will not be cleared probably. if (!can_ever_resize) - return HTCLIENT; + return HTNOWHERE; // Don't allow overlapping resize handles when the window is maximized or // fullscreen, as it can't be resized in those states.