diff options
author | Dmitry Petrov <dpetroff@gmail.com> | 2021-12-13 23:22:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-20 10:37:52 +0100 |
commit | 166221373755503134716317a51762a5fbedf3a7 (patch) | |
tree | c7e5c2396144611c22dad9d749016b4151d1b0c3 /Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp | |
parent | d61cc47055e27b007005ac2355728ce54cbbb50b (diff) | |
download | serenity-166221373755503134716317a51762a5fbedf3a7.zip |
Userland: Add horizontal mouse scroll support
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp b/Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp index 91e0b488a0..43c0add6bc 100644 --- a/Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp +++ b/Userland/Libraries/LibGUI/AbstractZoomPanWidget.cpp @@ -111,7 +111,7 @@ Gfx::FloatRect AbstractZoomPanWidget::content_to_frame_rect(Gfx::IntRect const& void AbstractZoomPanWidget::mousewheel_event(GUI::MouseEvent& event) { - float new_scale = scale() / AK::exp2(event.wheel_delta() / wheel_zoom_factor); + float new_scale = scale() / AK::exp2(event.wheel_delta_y() / wheel_zoom_factor); scale_centered(new_scale, event.position()); } |