# wheel

> Mouse wheel event unified for all browsers

Latest version **1.0.0** (published 2019-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install wheel
pnpm add wheel
yarn add wheel
bun add wheel
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-11-21 |
| First published | 2014-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/wheel) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | Andrei Kashcha |
| Maintainers | anvaka |
| Keywords | addWheelListener, wheel, mouse, DOMMouseScroll |

## Links

- npm: https://www.npmjs.com/package/wheel
- Repository: https://github.com/anvaka/wheel
- Homepage: https://github.com/anvaka/wheel#readme
- Issues: https://github.com/anvaka/wheel/issues
- npm.io page: https://npm.io/package/wheel

## Recent versions

- 1.0.0 (latest) — 2019-11-21
- 0.0.5 — 2016-10-22
- 0.0.4 — 2016-04-03
- 0.0.3 — 2015-08-07
- 0.0.2 — 2015-07-10
- 0.0.1 — 2015-05-12
- 0.0.0 — 2014-01-13

## README

# wheel  [![Build Status](https://travis-ci.org/anvaka/wheel.svg)](https://travis-ci.org/anvaka/wheel)

In 2014 this module was supposed to unify handling of mouse whee event across
different browsers.

Now it's just a wrapper on top of `element.addEventListener('wheel', callback)`;

# Usage

``` js
var addWheelListener = require('wheel').addWheelListener;
var removeWheelListener = require('wheel').removeWheelListener;
addWheelListener(domElement, function (e) {
	// mouse wheel event
});
removeWheelListener(domElement, function);
```

You can also use a shortcut for addWheelListener:

``` js
var addWheelListener = require('wheel');
addWheelListener(domElement, function (e) {
	// mouse wheel event
});
```

# install

With [npm](https://npmjs.org) do:

```
npm install wheel
```

# license

MIT

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