mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +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
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/2f388065c8 Pull-request: https://github.com/SerenityOS/serenity/pull/14309
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…
Reference in a new issue