1
0
Эх сурвалжийг харах

Merge pull request #6612 from archcomet/trackball-zoom-fix

Fixed zoom bug in trackball control
Ricardo Cabello 10 жил өмнө
parent
commit
4803800967

+ 2 - 0
examples/js/controls/TrackballControls.js

@@ -278,12 +278,14 @@ THREE.TrackballControls = function ( object, domElement ) {
 			if ( _eye.lengthSq() > _this.maxDistance * _this.maxDistance ) {
 
 				_this.object.position.addVectors( _this.target, _eye.setLength( _this.maxDistance ) );
+				_zoomStart.copy( _zoomEnd );
 
 			}
 
 			if ( _eye.lengthSq() < _this.minDistance * _this.minDistance ) {
 
 				_this.object.position.addVectors( _this.target, _eye.setLength( _this.minDistance ) );
+				_zoomStart.copy( _zoomEnd );
 
 			}
 

粤ICP备19079148号