Browse Source

TransformControls: Check if mouse is hovering gizmo onPointerUp. Fixes #3915.

Mr.doob 12 years ago
parent
commit
f00e45fc49
1 changed files with 1 additions and 2 deletions
  1. 1 2
      examples/js/controls/TransformControls.js

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

@@ -974,9 +974,8 @@ THREE.TransformControls = function ( camera, domElement ) {
 
 
 	function onPointerUp( event ) {
 	function onPointerUp( event ) {
 
 
-		scope.axis = undefined;
 		_dragging = false;
 		_dragging = false;
-		scope.update();
+		onPointerHover( event );
 
 
 	}
 	}