Skip to content

Commit

Permalink
Merge pull request mrdoob#12852 from cnspaha/patch-5
Browse files Browse the repository at this point in the history
TransformControls: Set axis before triggering mouseDownEvent
  • Loading branch information
mrdoob authored and cnspaha committed Feb 8, 2018
1 parent 1e68911 commit 6b811a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/js/controls/TransformControls.js
Expand Up @@ -856,10 +856,10 @@
event.preventDefault();
event.stopPropagation();

scope.dispatchEvent( mouseDownEvent );

scope.axis = intersect.object.name;

scope.dispatchEvent( mouseDownEvent );

scope.update();

eye.copy( camPosition ).sub( worldPosition ).normalize();
Expand Down

0 comments on commit 6b811a3

Please sign in to comment.