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.
This commit is contained in:
FrHun 2022-06-17 02:38:10 +02:00 committed by Linus Groh
parent e29e4e6c1f
commit 2f388065c8
Notes: sideshowbarker 2024-07-17 22:41:14 +09:00

View file

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