|
5 өдөр өмнө | |
---|---|---|
.. | ||
dist | 5 өдөр өмнө | |
src | 5 өдөр өмнө | |
LICENSE | 5 өдөр өмнө | |
README.md | 5 өдөр өмнө | |
README_zh-CN.md | 5 өдөр өмнө | |
package.json | 5 өдөр өмнө |
Allow the mouse wheel to manipulate scrolling behavior.
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,
}
})