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

normalize-wheel-es

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-wheel-es

Mouse wheel normalization across multiple multiple browsers.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144K
increased by3.5%
Maintainers
1
Weekly downloads
 
Created

What is normalize-wheel-es?

The normalize-wheel-es package is a utility for normalizing the wheel delta across different browsers. It helps in handling the inconsistencies in the way different browsers report the wheel events, providing a consistent and reliable way to handle mouse wheel interactions.

What are normalize-wheel-es's main functionalities?

Normalize Wheel Event

This feature normalizes the wheel event across different browsers. The code sample demonstrates how to import the normalizeWheel function and use it to handle the wheel event, logging the normalized pixel values for the X and Y axes.

import normalizeWheel from 'normalize-wheel-es';

const handleWheel = (event) => {
  const normalized = normalizeWheel(event);
  console.log(normalized.pixelX, normalized.pixelY);
};

document.addEventListener('wheel', handleWheel);

Other packages similar to normalize-wheel-es

Keywords

FAQs

Package last updated on 19 Jul 2022

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