mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:27:43 +00:00
LibGUI: Splitter should forget resize candidates after cursor leaves
Otherwise we'll keep highlighting the grabbable rect even after the cursor has left the splitter widget.
This commit is contained in:
parent
6ecf90c6f8
commit
9a09437c46
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ void Splitter::mouseup_event(MouseEvent& event)
|
||||||
if (event.button() != MouseButton::Left)
|
if (event.button() != MouseButton::Left)
|
||||||
return;
|
return;
|
||||||
m_resizing = false;
|
m_resizing = false;
|
||||||
|
m_first_resizee = nullptr;
|
||||||
|
m_second_resizee = nullptr;
|
||||||
if (!rect().contains(event.position()))
|
if (!rect().contains(event.position()))
|
||||||
window()->set_override_cursor(StandardCursor::None);
|
window()->set_override_cursor(StandardCursor::None);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue