normalize-wheel

WebJar for normalize-wheel

License

License

BSD 3-Clause
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

normalize-wheel
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

normalize-wheel
WebJar for normalize-wheel
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/basilfx/normalize-wheel

Download normalize-wheel

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/normalize-wheel/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>normalize-wheel</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/normalize-wheel/
implementation 'org.webjars.npm:normalize-wheel:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/normalize-wheel/
implementation ("org.webjars.npm:normalize-wheel:1.0.1")
'org.webjars.npm:normalize-wheel:jar:1.0.1'
<dependency org="org.webjars.npm" name="normalize-wheel" rev="1.0.1">
  <artifact name="normalize-wheel" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='normalize-wheel', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "normalize-wheel" % "1.0.1"
[org.webjars.npm/normalize-wheel "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Normalize Wheel

Mouse wheel normalization across multiple multiple browsers.

Original source

This code is extracted and from Facebook's Fixed Data Table. Apart from import fixes, the code is unmodified.

Usage

Just add it as an dependency in npm.

You can use it as follows:

import normalizeWheel from 'normalize-wheel';

document.addEventListener('mousewheel', function (event) {
    const normalized = normalizeWheel(event);

    console.log(normalized.pixelX, normalized.pixelY);
});

License

See the LICENSE file.

Versions

Version
1.0.1