Skip to content

Commit

Permalink
Add feels-good scaling factor to wheel scroll values.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 19, 2024
1 parent 4795011 commit e793f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiler/src/BackendEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Backend::Backend( const char* title, const std::function<void()>& 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 * -0.05, e->deltaY * -0.05 );
tracy::s_wasActive = true;
return EM_TRUE;
} );
Expand Down

0 comments on commit e793f92

Please sign in to comment.