Navigating with mouse executes the respective modal function where it handles autokeying the locked camera. But navigating with trackpad just executes invoke function (for eg: see event_code in `viewrotate_invoke_impl`). To fix this, Call `ED_view3d_camera_lock_autokey` inside invoke() to handle autokeying. Pull Request: https://projects.blender.org/blender/blender/pulls/138179