LibGUI: Repaint GScrollBar without hover highlight immediately on leave.

This commit is contained in:
Andreas Kling 2019-04-10 01:50:10 +02:00
parent 4abffa4dbe
commit b8f150457e
Notes: sideshowbarker 2024-07-19 14:47:02 +09:00

View file

@ -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();
}
}