mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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…
x
Reference in New Issue
Block a user