xzw 3 роки тому
батько
коміт
168b65c5c5
1 змінених файлів з 11 додано та 4 видалено
  1. 11 4
      public/static/js/main_2020_show.js

+ 11 - 4
public/static/js/main_2020_show.js

@@ -5751,7 +5751,7 @@ window.Modernizr = function (n, e, t) {
                     
                     setTimeout(()=>{
                         this.playTour() 
-                    },2000)//自动开始
+                    },1500)//自动开始
                 }
                 ,
                 n.prototype.prevHighlight = function () {
@@ -9703,10 +9703,10 @@ window.Modernizr = function (n, e, t) {
                         w.addEventListener(e, u.bind(this, !0), !0),
                         E.addEventListener(e, o, !0)
 
-                    S.forEach(function (t) {//会触发导览停止  
+                    /* S.forEach(function (t) {//会触发导览停止  
                         t.addEventListener(e, a, !0)
-                    })
-                    $("#drawer img").on(e, a)
+                    }) */
+                    //$("#drawer img").on(e, a)
                 })
             document.addEventListener("keydown", u.bind(this, !1), !0)
 
@@ -9763,7 +9763,14 @@ window.Modernizr = function (n, e, t) {
             } */
         }
         function u(e, t) {
+             
             if (t) {
+                //add 点击的话,只有点击画布才能停导览
+                if(t.type == "pointerdown" && t.target != player.domElement && t.target.parentElement != player.domElement){
+                    return
+                }
+                
+                
                 var i = "keydown" === t.type
                     , n = t.which === f.SPACE || C.tourIsPlaying;