Skip to content

A standalone javascript library for cross-browser mouse wheel support.

Notifications You must be signed in to change notification settings

GooTechnologies/hamster.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hamster.js

A standalone javascript library for cross-browser mouse wheel support.

See it in action.

Usage

The event callback receives 3 extra arguments which are the normalized “deltas” of the mouse wheel.

Hamster(el).wheel(function(event, delta, deltaX, deltaY){
  console.log(delta, deltaX, deltaY);
});

Support

No jQuery or other libraries required, but an adpater for AngularJS is available.

Tested in these core browsers.

Install

bower install hamsterjs

Demo

monospaced.github.io/hamster.js

Reference

About

A standalone javascript library for cross-browser mouse wheel support.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 56.5%
  • JavaScript 43.5%