0

这是来自 nicescrolls 网站:

mousescrollstep - 鼠标滚轮的滚动速度,默认值为 40(像素)

因此,当我想让用户滚动 5 次以滚动浏览 1080 像素的 div 时,我会向右滚动 1080/5,即 216 像素。

但是当我做

 $('body').niceScroll({
    mousescrollstep: 216,
  })

它在谷歌浏览器上滚动 400

示例: http ://codepen.io/anon/pen/PwevyW?editors=101

4

1 回答 1

0

The way this plugin is coded. It uses a function webkit browsers do not support. Use another plugin.

https://github.com/inuyaksa/jquery.nicescroll/issues/127

Gib.

于 2015-03-05T10:48:28.590 回答