This PR was motivated by the desire to have more control over orbit-controls behavior in the 360-image-viewer.
When using orbit-controls inside a panorama, the camera moves in the same direction as you drag your mouse. For our project, the desired behavior is opposite, which feels as if you are grabbing the environment and moving it.
The new option, invertInputRotate allows the user of the library to decide the behavior of the rotation. It is false by default to reflect the current behavior.
This PR was motivated by the desire to have more control over orbit-controls behavior in the 360-image-viewer.
When using orbit-controls inside a panorama, the camera moves in the same direction as you drag your mouse. For our project, the desired behavior is opposite, which feels as if you are grabbing the environment and moving it.
The new option,
invertInputRotate
allows the user of the library to decide the behavior of the rotation. It isfalse
by default to reflect the current behavior.