mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Fix horizontal wheel scroll direction.
This commit is contained in:
parent
07995f0222
commit
f971faab58
@ -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, -e->deltaY );
|
||||
tracy::s_wasActive = true;
|
||||
return EM_TRUE;
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user