You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
458 B

# @better-scroll/mouse-wheel
[中文文档](https://github.com/ustbhuangyi/better-scroll/blob/master/packages/mouse-wheel/README_zh-CN.md)
Allow the mouse wheel to manipulate scrolling behavior.
## Usage
```js
import BScroll from '@better-scroll/core'
import MouseWheel from '@better-scroll/mouse-wheel'
BScroll.use(MouseWheel)
const bs = new BScroll('.wrapper', {
// ...
mouseWheel: {
speed: 2,
invert: false,
easeTime: 300,
}
})
```