jScrollpane鼠标滚轮无法在所有浏览器中使用

时间:2013-06-21 05:31:09

标签: jquery jscrollpane

我正在使用jscrollpane。这些是我以相同顺序使用的文件。

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/jquery-ui-1.9.2.custom.css">       
<link rel="stylesheet" href="css/jquery.jscrollpane.css">
<link rel="stylesheet" href="css/style.css">        
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
.
content
.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/vendor/jquery-ui-1.9.2.custom.js"></script>
<script src="js/vendor/jquery.selectbox-0.2.js"></script>
<script src="js/jquery.jscrollpane.min.js"></script>

这就是我应用此插件的方式。

var api = $('.scroll-style').jScrollPane(
  {
       showArrows:false,
       maintainPosition: false,                 
   }
    ).data('jsp');

问题是在某些浏览器中滚动鼠标滚轮无法正常工作(请参阅清单)。

如何调整鼠标滚轮速度?

鼠标滚轮正常工作 - &gt;铬,IE9

鼠标滚轮完全无法使用 - &gt; firefox 15,IE8

我在IE8和firefox中也非常需要它。

2 个答案:

答案 0 :(得分:1)

jquery.mousewheel.js - jQuery mouseweel插件。这是可选的,但建议使用它,以允许人们使用鼠标滚轮滚动内容。

JQuery link here

答案 1 :(得分:0)

似乎你没有包括鼠标轮js。 请在此处添加最新的https://github.com/brandonaaron/jquery-mousewheel/downloads

鼠标滚轮速度使用 mouseWheelSpeed

示例jQuery('。scroll-style')。jScrollPane({mouseWheelSpeed:50});

相关问题