2
0
Эх сурвалжийг харах

making conditional more clear

Daniel Taub 11 жил өмнө
parent
commit
ad71cf1c21

+ 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 )
 			}