three-render-objects 1.27.0 → 1.27.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.
@@ -626,7 +626,7 @@ var threeRenderObjects = Kapsule__default["default"]({
626
626
  }
627
627
 
628
628
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
629
- state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
629
+ state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
630
630
  state.camera.far = state.skyRadius * 2.5;
631
631
  state.camera.updateProjectionMatrix();
632
632
  state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
@@ -1,4 +1,4 @@
1
- // Version 1.27.0 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.27.3 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
@@ -1873,8 +1873,6 @@
1873
1873
 
1874
1874
  function onMouseMove( event ) {
1875
1875
 
1876
- if ( scope.enabled === false ) return;
1877
-
1878
1876
  switch ( state ) {
1879
1877
 
1880
1878
  case STATE.ROTATE:
@@ -5354,7 +5352,7 @@
5354
5352
  }
5355
5353
 
5356
5354
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
5357
- state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
5355
+ state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
5358
5356
  state.camera.far = state.skyRadius * 2.5;
5359
5357
  state.camera.updateProjectionMatrix();
5360
5358
  state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);