Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mouse-wheel

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mouse-wheel - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "mouse-wheel",
"version": "1.1.0",
"version": "1.2.0",
"description": "Consistent cross browser mouse wheel movement",

@@ -5,0 +5,0 @@ "main": "wheel.js",

@@ -25,4 +25,5 @@ mouse-wheel

* `element` is an optional DOM element, or if unspecified then is the window object.
* `callback(dx, dy, dz)` is called whenever the mouse scrolls
* `callback(dx, dy, dz, ev)` is called whenever the mouse scrolls
+ `dx, dy, dz` is the amount of scrolling vertically, horizontally and depth-wise in pixels
+ `ev` is the MouseEvent object associated with the event
* `noScroll` is an optional flag, which if set disables scrolling the page

@@ -29,0 +30,0 @@

@@ -35,3 +35,3 @@ 'use strict'

if(dx || dy || dz) {
return callback(dx, dy, dz)
return callback(dx, dy, dz, ev)
}

@@ -38,0 +38,0 @@ }

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