How to reverse camera rotation


I have a 360 image viewer build on top of Babylon DeviceOrientationCamera.
However when I attach the controls, swiping the screen rotates the camera relative to the picture, which is very counter intuitive for the user.

Is there a way to reverse the rotation on X and Y axis, and could you please point out how to do it!

Thanks in advance!

you can change it by calling this code:

var touch= camera.inputs.attached["touch"];
if (touch) {
    touch.touchAngularSensibility *= -1;
1 Like