Package Exports
- @better-scroll/mouse-wheel
- @better-scroll/mouse-wheel/dist/mouse-wheel.esm.js
- @better-scroll/mouse-wheel/dist/mouse-wheel.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@better-scroll/mouse-wheel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@better-scroll/mouse-wheel
Allow the mouse wheel to manipulate scrolling behavior.
Usage
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,
}
})