Socket
Socket
Sign inDemoInstall

wheel

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wheel

Mouse wheel event unified for all browsers


Version published
Weekly downloads
46K
increased by1.61%
Maintainers
1
Install size
4.36 kB
Created
Weekly downloads
 

Readme

Source

wheel Build Status

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

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:

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

install

With npm do:

npm install wheel

license

MIT

Keywords

FAQs

Last updated on 21 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc