Browse Source

Merge pull request #12852 from cnspaha/patch-5

TransformControls: Set axis before triggering mouseDownEvent
Mr.doob 7 years ago
parent
commit
bd7c27870e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/controls/TransformControls.js

+ 2 - 2
examples/js/controls/TransformControls.js

@@ -856,10 +856,10 @@
 					event.preventDefault();
 					event.preventDefault();
 					event.stopPropagation();
 					event.stopPropagation();
 
 
-					scope.dispatchEvent( mouseDownEvent );
-
 					scope.axis = intersect.object.name;
 					scope.axis = intersect.object.name;
 
 
+					scope.dispatchEvent( mouseDownEvent );
+
 					scope.update();
 					scope.update();
 
 
 					eye.copy( camPosition ).sub( worldPosition ).normalize();
 					eye.copy( camPosition ).sub( worldPosition ).normalize();