瀏覽代碼

DragControls: Reset cursor style.

Mugen87 5 年之前
父節點
當前提交
5a27b0878d
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      examples/js/controls/DragControls.js
  2. 2 0
      examples/jsm/controls/DragControls.js

+ 2 - 0
examples/js/controls/DragControls.js

@@ -44,6 +44,8 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
 		_domElement.removeEventListener( 'touchstart', onDocumentTouchStart, false );
 		_domElement.removeEventListener( 'touchend', onDocumentTouchEnd, false );
 
+		_domElement.style.cursor = '';
+
 	}
 
 	function dispose() {

+ 2 - 0
examples/jsm/controls/DragControls.js

@@ -53,6 +53,8 @@ var DragControls = function ( _objects, _camera, _domElement ) {
 		_domElement.removeEventListener( 'touchstart', onDocumentTouchStart, false );
 		_domElement.removeEventListener( 'touchend', onDocumentTouchEnd, false );
 
+		_domElement.style.cursor = '';
+
 	}
 
 	function dispose() {