mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibGUI: Repaint GScrollBar without hover highlight immediately on leave.
This commit is contained in:
parent
4abffa4dbe
commit
b8f150457e
1 changed files with 4 additions and 1 deletions
|
@ -295,5 +295,8 @@ void GScrollBar::mousemove_event(GMouseEvent& event)
|
|||
|
||||
void GScrollBar::leave_event(GEvent&)
|
||||
{
|
||||
m_hovered_component = Component::Invalid;
|
||||
if (m_hovered_component != Component::Invalid) {
|
||||
m_hovered_component = Component::Invalid;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue