From f971faab5898bffe08b954eb671944e714a71cf1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 19 Sep 2024 20:53:44 +0200 Subject: [PATCH] Fix horizontal wheel scroll direction. --- profiler/src/BackendEmscripten.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/BackendEmscripten.cpp b/profiler/src/BackendEmscripten.cpp index 896ebe3a..9f918175 100644 --- a/profiler/src/BackendEmscripten.cpp +++ b/profiler/src/BackendEmscripten.cpp @@ -200,7 +200,7 @@ Backend::Backend( const char* title, const std::function& redraw, const return EM_TRUE; } ); emscripten_set_wheel_callback( "#canvas", nullptr, EM_TRUE, []( int, const EmscriptenWheelEvent* e, void* ) -> EM_BOOL { - ImGui::GetIO().AddMouseWheelEvent( e->deltaX, -e->deltaY ); + ImGui::GetIO().AddMouseWheelEvent( -e->deltaX, -e->deltaY ); tracy::s_wasActive = true; return EM_TRUE; } );