0

我正在使用 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');

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

如何调整鼠标滚轮速度?

鼠标滚轮在 -> chrome,IE9 下工作正常

鼠标滚轮根本无法使用 -> firefox 15, IE8

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

4

2 回答 2

1

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

jQuery链接在这里

于 2017-10-14T22:33:45.720 回答
0

看来您还没有包含 mousewheel js 。请在此处包含最新的https://github.com/brandonaaron/jquery-mousewheel/downloads

鼠标滚轮速度使用mouseWheelSpeed

例如 jQuery('.scroll-style').jScrollPane({mouseWheelSpeed : 50});

于 2013-08-22T10:34:30.527 回答