@needle-tools/three 0.146.9 → 0.146.10

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.
@@ -221,9 +221,15 @@ class OrbitControls extends EventDispatcher {
221
221
  spherical.phi = Math.max( scope.minPolarAngle, Math.min( scope.maxPolarAngle, spherical.phi ) );
222
222
 
223
223
  spherical.makeSafe();
224
+ if ( scope.enableDamping ) {
224
225
 
226
+ currentScale = MathUtils.lerp(currentScale, scale, scope.dampingFactor);
225
227
 
226
- currentScale = MathUtils.lerp(currentScale, scale, scope.dampingFactor);
228
+ } else {
229
+
230
+ currentScale = scale;
231
+
232
+ }
227
233
 
228
234
  spherical.radius *= currentScale;
229
235
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three",
3
- "version": "0.146.9",
3
+ "version": "0.146.10",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.js",