2016-07-06 67 views

回答

2

打開文件jquery.contencarousel.js並註釋掉(或刪除)以下部分代碼:

// adds events to the mouse 
        $el.bind('mousewheel.contentcarousel', function(e, delta) { 
         if(delta > 0) { 
          if(cache.isAnimating) return false; 
          cache.isAnimating = true; 
          aux.navigate(-1, $el, $wrapper, settings, cache); 
         } 
         else { 
          if(cache.isAnimating) return false; 
          cache.isAnimating = true; 
          aux.navigate(1, $el, $wrapper, settings, cache); 
         } 
         return false; 
        }); 

這部分代碼通過鼠標在您的傳送帶中更改幻燈片來綁定滾動。

+1

那是正確的答案!謝謝 :) –

0

如果你需要禁用滾動,你應該能夠只是添加到你的CSS:

overflow-x: hidden; /* Horizontally */ 
overflow-y: hidden; /* Vertically */ 
overflow: hidden; /* Both ways */ 
0

在你jquery.mousewheel.js>註釋類型的事件 「滾輪」

53 //event.type = "mousewheel";