@better-scroll/mouse-wheel
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • Public • Published

@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,
  }
})

Package Sidebar

Install

npm i @better-scroll/mouse-wheel

Weekly Downloads

5,464

Version

2.5.1

License

MIT

Unpacked Size

57 kB

Total Files

10

Last publish

Collaborators

  • hubvue
  • dolymood
  • candyj
  • theniceangel