summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorDmitry Petrov <dpetroff@gmail.com>2021-12-13 23:22:28 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-20 10:37:52 +0100
commit166221373755503134716317a51762a5fbedf3a7 (patch)
treec7e5c2396144611c22dad9d749016b4151d1b0c3 /Userland/DevTools
parentd61cc47055e27b007005ac2355728ce54cbbb50b (diff)
downloadserenity-166221373755503134716317a51762a5fbedf3a7.zip
Userland: Add horizontal mouse scroll support
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/Profiler/TimelineView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/TimelineView.cpp b/Userland/DevTools/Profiler/TimelineView.cpp
index e8cc208aac..bc34d0fb25 100644
--- a/Userland/DevTools/Profiler/TimelineView.cpp
+++ b/Userland/DevTools/Profiler/TimelineView.cpp
@@ -67,7 +67,7 @@ void TimelineView::mousewheel_event(GUI::MouseEvent& event)
{
if (event.modifiers() == Mod_Ctrl) {
event.accept();
- m_scale += event.wheel_delta();
+ m_scale += event.wheel_delta_y();
m_scale = clamp(m_scale, 1.0f, 100.0f);
for_each_child_of_type<TimelineTrack>([&](auto& track) {
track.set_scale(m_scale);