New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wheel-inertia

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wheel-inertia

Mouse wheel inertia which solves the problem of longtime events from a trackpad or a magic mouse

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-97.94%
Maintainers
1
Weekly downloads
 
Created
Source

Wheel Inertia

This module solves the problem of longtime events from a trackpad or a magic mouse

The base of the code coming from a comment of @msimpson (https://github.com/msimpson)

See comments for more details.

Check an example here

Usage

import inertia from 'wheel-inertia'

// Add your callback
inertia.addCallback(myCallback)

function myCallback(direction) {
	// do something with your wheel event
	// you can also get the direction of wheel
}

// Update the module with your wheel delta, so from inside your 'wheel' listener...
var delta = e.wheelDelta
inertia.update(delta)

Install

With npm do:

npm install wheel-inertia

License

MIT

Keywords

FAQs

Package last updated on 28 Jun 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc