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

wheel

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wheel - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

11

index.js

@@ -24,3 +24,3 @@ /**

var prefix = "", _addEventListener, _removeEventListener, onwheel, support;
var prefix = "", _addEventListener, _removeEventListener, support;

@@ -37,3 +37,3 @@ detectEventModel(typeof window !== 'undefined' && window,

}
};
}

@@ -47,8 +47,8 @@ function removeWheelListener( elem, callback, useCapture ) {

}
};
}
function _addWheelListener( elem, eventName, callback, useCapture ) {
// TODO: in theory this anonymous function may result in incorrect
// unsubscription in some browsers. But in practice, I don't think we should
// worry too much about it (those browsers are on the way out)
function _addWheelListener( elem, eventName, callback, useCapture ) {
elem[ _addEventListener ]( prefix + eventName, support == "wheel" ? callback : function( originalEvent ) {

@@ -65,3 +65,4 @@ !originalEvent && ( originalEvent = window.event );

deltaX: 0,
delatZ: 0,
deltaY: 0,
deltaZ: 0,
clientX: originalEvent.clientX,

@@ -68,0 +69,0 @@ clientY: originalEvent.clientY,

{
"name": "wheel",
"version": "0.0.4",
"version": "0.0.5",
"description": "Mouse wheel event unified for all browsers",

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

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