提交 7f13327b 编写于 作者: M minglars

Replaced distanceTo with distanceToSquared on line 245 in TrackballControls.js

上级 4513b291
......@@ -253,7 +253,7 @@ THREE.TrackballControls = function ( object, domElement ) {
_this.object.lookAt( _this.target );
if ( lastPosition.distanceTo( _this.object.position ) > 0 ) {
if ( lastPosition.distanceToSquared( _this.object.position ) > 0 ) {
_this.dispatchEvent( changeEvent );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册