mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +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:
parent
e29e4e6c1f
commit
2f388065c8
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue