Browse Source

making conditional more clear

Daniel Taub 11 years ago
parent
commit
ad71cf1c21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/controls/TransformControls.js

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

@@ -961,7 +961,7 @@
 
 		function onPointerUp( event ) {
 
-			if ( _dragging && !!scope.axis ) {
+			if ( _dragging && ( scope.axis !== null ) ) {
 				mouseUpEvent.mode = _mode;
 				scope.dispatchEvent( mouseUpEvent )
 			}