Browse Source

OrbitControls: Add missing epsilon to change check (#27620)

Joshua Taylor Eppinette 1 year ago
parent
commit
f051f1ac90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/controls/OrbitControls.js

+ 1 - 1
examples/jsm/controls/OrbitControls.js

@@ -395,7 +395,7 @@ class OrbitControls extends EventDispatcher {
 				if ( zoomChanged ||
 					lastPosition.distanceToSquared( scope.object.position ) > EPS ||
 					8 * ( 1 - lastQuaternion.dot( scope.object.quaternion ) ) > EPS ||
-					lastTargetPosition.distanceToSquared( scope.target ) > 0 ) {
+					lastTargetPosition.distanceToSquared( scope.target ) > EPS ) {
 
 					scope.dispatchEvent( _changeEvent );