From b8f150457e803c624e85d336cfcd22efc1581e09 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 10 Apr 2019 01:50:10 +0200 Subject: [PATCH] LibGUI: Repaint GScrollBar without hover highlight immediately on leave. --- LibGUI/GScrollBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LibGUI/GScrollBar.cpp b/LibGUI/GScrollBar.cpp index 71ed2f8012e..c51b039712d 100644 --- a/LibGUI/GScrollBar.cpp +++ b/LibGUI/GScrollBar.cpp @@ -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(); + } }