mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:07:35 +00: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&)
|
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
Add a link
Reference in a new issue