tz-better-scroll-mouse-wheel
v2.5.5
Published
support for MouseWheel in PC
Downloads
5
Maintainers
Readme
@better-scroll/mouse-wheel
Allow the mouse wheel to manipulate scrolling behavior.
Usage
import BScroll from 'tz-better-scroll-core'
import MouseWheel from 'tz-better-scroll-mouse-wheel'
BScroll.use(MouseWheel)
const bs = new BScroll('.wrapper', {
// ...
mouseWheel: {
speed: 2,
invert: false,
easeTime: 300,
}
})