From 31510de6a876b53f3c7c30c7fb55a792addd54aa Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 25 Aug 2020 14:00:38 -0400 Subject: [PATCH] LibGUI: Make ScrollBar show hover state of scrubber after gutter drag With this, if clicking the gutter until the scrubber's below the mouse and then releasing the mouse, the scrubber is correctly highlighted after releasing the mouse. --- Libraries/LibGUI/ScrollBar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibGUI/ScrollBar.cpp b/Libraries/LibGUI/ScrollBar.cpp index c558c52db1..767d630d0b 100644 --- a/Libraries/LibGUI/ScrollBar.cpp +++ b/Libraries/LibGUI/ScrollBar.cpp @@ -275,6 +275,7 @@ void ScrollBar::on_automatic_scrolling_timer_fired() } if (m_pressed_component == Component::Gutter && component_at_position(m_last_mouse_position) == Component::Gutter) { scroll_by_page(m_last_mouse_position); + m_hovered_component = component_at_position(m_last_mouse_position); return; } }