提交 2f65008a 编写于 作者: M Mr.doob

OrbitControls: Removed another unneeded needUpdate.

上级 5c760e72
......@@ -492,8 +492,6 @@ THREE.OrbitControls = function ( object, domElement ) {
var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
var needUpdate = false;
switch ( event.touches.length ) {
case 1: // one-fingered touch: rotate
......@@ -510,7 +508,7 @@ THREE.OrbitControls = function ( object, domElement ) {
rotateStart.copy( rotateEnd );
needUpdate = true;
scope.update();
break;
case 2: // two-fingered touch: dolly
......@@ -536,7 +534,7 @@ THREE.OrbitControls = function ( object, domElement ) {
dollyStart.copy( dollyEnd );
needUpdate = true;
scope.update();
break;
case 3: // three-fingered touch: pan
......@@ -550,7 +548,7 @@ THREE.OrbitControls = function ( object, domElement ) {
panStart.copy( panEnd );
needUpdate = true;
scope.update();
break;
default:
......@@ -558,12 +556,6 @@ THREE.OrbitControls = function ( object, domElement ) {
}
if ( needUpdate ) {
scope.update();
}
}
function touchend( /* event */ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册