• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 8 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mouse wheel normalization across multiple multiple browsers.

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.

More Repositories

1

TRADFRI-Hacking

Hacking IKEA TRΓ…DFRI products, such as light bulbs, window blinds and other accessories.
637
star
2

kippo-extra

Set of extra commands for kippo, the SSH honeypot daemon
Python
30
star
3

Arduino-CommandLine

No-nonsense serial command line interpreter.
C++
27
star
4

Course-Face3D

Implementation of a prototype 3D Face recognition system
Python
22
star
5

KNX-Universal-Taster

DIY universal taster actor for the KNX bus.
HTML
16
star
6

SubDaap

DAAP server/proxy for SubSonic: play your favorite tunes from SubSonic in iTunes!
Python
13
star
7

HTMLFeedback

jQuery website feedback plugin (like Google) using the canvas element.
JavaScript
13
star
8

flask-daapserver

DAAP server for streaming media, built around the Flask micro framework.
Python
10
star
9

python-eetlijst

Unofficial Python API to interface with Eetlijst.nl
HTML
8
star
10

xtext-standalone-maven-build

Xtext standalone maven build, without Eclipse.
Xtend
8
star
11

plugin.audio.subsonic

Kodi plugin to stream music from Subsonic.
Python
8
star
12

lpc_checksum

Python script to calculate LPC firmware checksums.
Python
8
star
13

python-whatsappy

An unofficial Python API for connecting with the WhatsApp chat protocol (deprecated).
Python
7
star
14

EFM2RIOT

Generator for initializing the EFM32 port for use with RIOT-OS
C
6
star
15

homeassistant-biketrax

Custom component for the PowUnity BikeTrax integration for Home Assistant.
Python
5
star
16

go-ble-nordic-uart

Nordic UART service for go-ble.
Go
3
star
17

aiobiketrax

Python library for interacting with the PowUnity BikeTrax GPS tracker.
Python
3
star
18

es6-geometry

Collection of immutable ES6 classes for simple 2D geometric objects and calculations.
JavaScript
3
star
19

go-ble-berrylan

Golang implementation of the BerryLan BLE server for go-ble.
Go
3
star
20

DSMR-Splitter

Active port expander for the P1 port on a Dutch Smart Meter (DSMR).
HTML
3
star
21

RIOT-gecko-sdk

Minimal distribution of the Silicon Labs Gecko SDK, prepared for usage with RIOT-OS.
C
3
star
22

Sensor-Community-Enclosure

3D printed version of a Sensor.Community Air Sensor enclosure.
2
star
23

Photod

An experimental photo gallery.
JavaScript
2
star
24

python-tinylink

Frame-based streaming protocol for embedded applications.
Python
2
star
25

BierApp-Server

Drink management system for student houses. This is the server part.
Python
2
star
26

BierApp-Android

Drink management system for student houses. This is the client (POS) part.
Java
2
star
27

RJ12-to-RJ45-Converter

A converter for RJ12 to RJ45 for just a very specific use case.
HTML
1
star
28

django-project-template

My Django template
Python
1
star
29

templated-secrets

A Kubernetes operator to template secrets dynamically.
Go
1
star
30

LPC810-FanController

Tiny PID-based fan controller board and firmware to insert between 3-pin fans.
C
1
star
31

go-serial-link

Request-response and notifications over a serial link.
Go
1
star
32

Phalcon-Uploader

File upload handler for the Phalcon Framework.
PHP
1
star
33

Phalcon-ModelGen

Generate models using an extended set of model annotations.
PHP
1
star
34

Course-HardwareSecurity

Repository for the Hardware Security project
Java
1
star
35

Arduino-BeerCounter

A beer cork counting system, built around an Arduino, with the love of beer.
Eagle
1
star
36

Course-CompilerDesign

Object oriented compiler for the Java Virtual Machine with Objective-C-like Syntax.
Java
1
star