diff options
Diffstat (limited to 'Userland/Applications/Piano/RollWidget.cpp')
-rw-r--r-- | Userland/Applications/Piano/RollWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/RollWidget.cpp b/Userland/Applications/Piano/RollWidget.cpp index d2c6312dbd..915da0e294 100644 --- a/Userland/Applications/Piano/RollWidget.cpp +++ b/Userland/Applications/Piano/RollWidget.cpp @@ -239,7 +239,7 @@ void RollWidget::mouseup_event([[maybe_unused]] GUI::MouseEvent& event) void RollWidget::mousewheel_event(GUI::MouseEvent& event) { if (event.modifiers() & KeyModifier::Mod_Shift) { - horizontal_scrollbar().set_value(horizontal_scrollbar().value() + (event.wheel_delta() * horizontal_scroll_sensitivity)); + horizontal_scrollbar().increase_slider_by(event.wheel_delta() * horizontal_scroll_sensitivity); return; } |