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; } );