1.0.11 • Published 3 years ago

wheelthrottle v1.0.11

Weekly downloads
23
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago