@cocorof/graphier 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1984,7 +1984,9 @@ function createOrbitUpdate(camera, controls, keys) {
1984
1984
  radius = Math.max(controls.minDistance, Math.min(controls.maxDistance, radius));
1985
1985
  }
1986
1986
  if (azimuth !== 0) {
1987
- _q.setFromAxisAngle(camera.up, -azimuth);
1987
+ const upDot = camera.up.dot(_worldUp);
1988
+ const azSign = upDot < 0 ? -1 : 1;
1989
+ _q.setFromAxisAngle(camera.up, -azimuth * azSign);
1988
1990
  _offset.applyQuaternion(_q);
1989
1991
  }
1990
1992
  if (polar !== 0) {