提交 2b650509 编写于 作者: J James Baicoianu

OrbitControls should only emit change events when distance > epsilon

上级 94a83e68
......@@ -273,7 +273,7 @@ THREE.OrbitControls = function ( object, domElement ) {
scale = 1;
pan.set( 0, 0, 0 );
if ( lastPosition.distanceTo( this.object.position ) > 0 ) {
if ( lastPosition.distanceTo( this.object.position ) > EPS ) {
this.dispatchEvent( changeEvent );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册