normalize-wheel

WebJar for normalize-wheel

Лицензия

Лицензия

BSD 3-Clause
Категории

Категории

ORM Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

normalize-wheel
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

normalize-wheel
WebJar for normalize-wheel
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать normalize-wheel

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.1