From 2f388065c8d56157bd7efbe5a232d823bc718bb0 Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Fri, 17 Jun 2022 02:38:10 +0200 Subject: [PATCH] LibGUI: Fix crash on Scrollbar shift click and re enable jumping Previously clicking in the gutter of an activated scrollbar while holding shift would crash on the removed VERIFY. --- Userland/Libraries/LibGUI/Scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/Scrollbar.cpp b/Userland/Libraries/LibGUI/Scrollbar.cpp index 2768f4a75d..39ac9953f8 100644 --- a/Userland/Libraries/LibGUI/Scrollbar.cpp +++ b/Userland/Libraries/LibGUI/Scrollbar.cpp @@ -303,7 +303,7 @@ void Scrollbar::mousedown_event(MouseEvent& event) if (event.shift()) { scroll_to_position(event.position()); m_pressed_component = component_at_position(event.position()); - VERIFY(m_pressed_component == Component::Scrubber); + return; } if (m_pressed_component == Component::Scrubber) { m_scrub_start_value = value();