mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user