From a5e5e8a435daf36f9213d40e7e97efc6cbb13610 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 7 Jan 2026 23:29:35 +0100 Subject: [PATCH] Workaround emscripten scroll issues. Obviously not the correct fix, but whatever. --- profiler/src/profiler/TracyView_Timeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyView_Timeline.cpp b/profiler/src/profiler/TracyView_Timeline.cpp index c3dc01b0..2fa550e3 100644 --- a/profiler/src/profiler/TracyView_Timeline.cpp +++ b/profiler/src/profiler/TracyView_Timeline.cpp @@ -145,7 +145,9 @@ void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w ) else if( io.KeyShift ) mod = 0.5; mod *= m_verticalScrollMultiplier; +#ifndef __EMSCRIPTEN__ mod *= fabs( wheel ); +#endif if( wheel > 0 ) {