mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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
Notes:
sideshowbarker
2024-07-19 09:26:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9a09437c46b
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ void Splitter::mouseup_event(MouseEvent& event)
|
|||
if (event.button() != MouseButton::Left)
|
||||
return;
|
||||
m_resizing = false;
|
||||
m_first_resizee = nullptr;
|
||||
m_second_resizee = nullptr;
|
||||
if (!rect().contains(event.position()))
|
||||
window()->set_override_cursor(StandardCursor::None);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue