Explorar el Código

Keep the cursor as pointer after dragging

govizlora hace 7 años
padre
commit
0cbee093ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/controls/DragControls.js

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

@@ -154,7 +154,7 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
 
 		}
 
-		_domElement.style.cursor = 'auto';
+		_domElement.style.cursor = _hovered ? 'pointer' : 'auto';
 
 	}