xzw 3 vuotta sitten
vanhempi
commit
c1ec80c2a3
2 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 5 5
      js/main_2020_edit.js
  2. 5 5
      js/main_2020_show.js

+ 5 - 5
js/main_2020_edit.js

@@ -6781,22 +6781,22 @@ function o(a, s, l) {
                     
                     //add : 
                 
-                    let scrollFrame = $(W.frame)
+                    let scrollFrame = $(w.frame)
                     scrollFrame.on("wheel.sly", function() {
                          lastMoveScrollTime = Date.now()
                     })
                     
                     let dragstart 
-                    scrollFrame.on("pointerdown",  function() { 
+                    /* scrollFrame.on("pointerdown",  function() { 
                         dragstart = true
                     })
                     scrollFrame.on("pointerup",  function() {
                         dragstart = false
-                    })
+                    }) */
                     scrollFrame.on("pointermove",  function() {
-                        if(dragstart){
+                        //if(dragstart){
                             lastMoveScrollTime = Date.now()
-                        }
+                        //}
                     })
                     
                 }(s, l, c) : (Ce.highlight.visible = !1,

+ 5 - 5
js/main_2020_show.js

@@ -6888,16 +6888,16 @@ window.Modernizr = function(n, e, t) {
                 })
                 
                 let dragstart 
-                scrollFrame.on("pointerdown",  function() { 
+                /* scrollFrame.on("pointerdown",  function() { 
                     dragstart = true
                 })
                 scrollFrame.on("pointerup",  function() {
                     dragstart = false
-                })
+                }) */
                 scrollFrame.on("pointermove",  function() {
-                    if(dragstart){
+                    //if(dragstart){
                         lastMoveScrollTime = Date.now()
-                    }
+                    //}
                 })
             }
             function w() {
@@ -7095,7 +7095,7 @@ window.Modernizr = function(n, e, t) {
                             if(n.onTheBus && r === n.destinationItem[0]){
                                 s.addClass(p) 
                                 a.addClass(p) 
-                                if(Date.now() - lastMoveScrollTime > 2000){ //add 如果一段时间内用户不拖拽滚动scroll,才focus回这个item
+                                if(Date.now() - lastMoveScrollTime > 2000){ //add 如果一段时间内用户不操作scrollbar,才focus回这个item
                                     W.activate(r) // scrollbar slide to this
                                 }  
                             }else{