1.0.11 • Published 4 years ago

wheelthrottle v1.0.11

Weekly downloads
23
License
ISC
Repository
github
Last release
4 years ago

wheelthrottle

Wheel event debounce with windows mouse or apple trackpad.

Description

When we scroll with apple magic mouse and track pad, face a few problem.
Because that's those have inertia scroll forcibly. Wheelthrottle made possible "one wheel one fire".
If you keep wheeling it, It will ignite in a certain time. It's work possibility normal mouse also.

SAMPLE

DEMO PAGE

Usage

import WheelThrottle from "wheelthrottle";

const targetEl = new WheelThrottle(document.getElementById("id"));

targetEl.addWheelThrottle((e: Event) => {
  const WHEEL_DIRECTION = e.detail.direction; // 1 or -1
  // ...
});

Install

npm install --save-dev wheelthrottle

Licence

MIT

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago