소스 검색

3dModeling pulic.js 王祥 commit at 2021-03-12

王祥 4 년 전
부모
커밋
9745f75b1a
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      3dModeling/hswc3/pulic.js

+ 17 - 0
3dModeling/hswc3/pulic.js

@@ -187,3 +187,20 @@ function stopRotate() {
         rotateTimer = null;
     }
 }
+/**
+ * 说明:重新开始转动,未进行任何操作5s后开始自动旋转
+ */
+function restarRotate() {
+    if (fpsCtrl != null || !$('#sceneSetting .control-menu-pane li.autoRotate').hasClass('selected')) {
+        return;
+    }
+    if (rotateTimer == null) {
+        rotateTimer = setTimeout(function () {
+            //  startRotate();
+        }, restartTime);
+    } else {
+        clearTimeout(rotateTimer);
+        rotateTimer = null;
+        restarRotate();
+    }
+}