fix: return HTNOWHERE in resize hit test to allow draggable regions to kick in when required (#30925)

This commit is contained in:
Samuel Attard 2021-10-05 12:48:22 -07:00 committed by GitHub
parent 7919851451
commit 34599114ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.