Skip to content

Commit

Permalink
fix: return HTNOWHERE in resize hit test to allow draggable regions t…
Browse files Browse the repository at this point in the history
…o kick in when required (#31300)

Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
  • Loading branch information
trop[bot] and MarshallOfSound committed Oct 6, 2021
1 parent 7c5a346 commit c07016e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/browser/ui/views/frameless_view.cc
Expand Up @@ -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.
Expand Down

0 comments on commit c07016e

Please sign in to comment.