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

normalize-wheel

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

normalize-wheel

Mouse wheel normalization across multiple multiple browsers.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
482K
increased by10.11%
Maintainers
1
Weekly downloads
 
Created

What is normalize-wheel?

The normalize-wheel npm package is used to normalize the wheel event data across different browsers. This is particularly useful for handling mouse wheel events in a consistent manner, as different browsers can provide different values for the same event.

What are normalize-wheel's main functionalities?

Normalize Wheel Event Data

This feature allows you to normalize the wheel event data, making it consistent across different browsers. The code sample demonstrates how to use the normalizeWheel function to normalize the wheel event data and log the normalized pixel values for both the X and Y axes.

const normalizeWheel = require('normalize-wheel');

document.addEventListener('wheel', function(event) {
  const normalized = normalizeWheel(event);
  console.log(normalized.pixelY); // Normalized pixel value for the Y axis
  console.log(normalized.pixelX); // Normalized pixel value for the X axis
});

Other packages similar to normalize-wheel

Keywords

FAQs

Package last updated on 16 Jun 2016

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