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/LibVT/TerminalWidget.cpp | |
parent | d61cc47055e27b007005ac2355728ce54cbbb50b (diff) | |
download | serenity-166221373755503134716317a51762a5fbedf3a7.zip |
Userland: Add horizontal mouse scroll support
Diffstat (limited to 'Userland/Libraries/LibVT/TerminalWidget.cpp')
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index c3108d3d3f..8bfe60fed4 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -918,7 +918,7 @@ void TerminalWidget::mousewheel_event(GUI::MouseEvent& event) if (!is_scrollable()) return; set_auto_scroll_direction(AutoScrollDirection::None); - m_scrollbar->increase_slider_by(event.wheel_delta() * scroll_length()); + m_scrollbar->increase_slider_by(event.wheel_delta_y() * scroll_length()); GUI::Frame::mousewheel_event(event); } |