# better-mouse-wheel

> support for MouseWheel in PC

Latest version **2.5.2** (published 2023-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install better-mouse-wheel
pnpm add better-mouse-wheel
yarn add better-mouse-wheel
bun add better-mouse-wheel
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.2 |
| Published | 2023-02-25 |
| First published | 2023-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | jizhi/youranreus |
| Maintainers | youranreus |
| Keywords | scroll, iscroll, javascript, typescript, ios |

## Links

- npm: https://www.npmjs.com/package/better-mouse-wheel
- Repository: https://github.com/youranreus/better-mouse-wheel
- Issues: https://github.com/youranreus/better-mouse-wheel/issues
- npm.io page: https://npm.io/package/better-mouse-wheel

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.5.2 (latest) — 2023-02-25
- 2.5.1 — 2023-02-08
- 2.5.0 — 2023-02-07

## README

# better-mouse-wheel

从 @better-scroll/mouse-wheel 魔改而来
[原文档](https://github.com/ustbhuangyi/better-scroll/blob/master/packages/mouse-wheel/README_zh-CN.md)

在原插件的基础上增加了 `exceptDOM` 的配置项，可传入 `HTMLElement | string | HTMLElement[]` ，当接收到来自 `exceptDOM` 的鼠标滚动事件时不会触发 `Better-scroll` 滚动，保留原生滚动。

## 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,
    exceptDOM: '.class'
  }
})
```

---
_Source: https://npm.io/package/better-mouse-wheel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
