Skip to content

benthomasson/angular-mousewheel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Mousewheel

An AngularJS directive for cross-browser mouse wheel support, using the small and standalone Hamster.js library.

See it in action.

Usage

as attribute

msd-wheel="{expression}"

as class

class="msd-wheel: {expression};"

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

msd-wheel="myFunction($event, $delta, $deltaX, $deltaY)"

class="msd-wheel: myFunction($event, $delta, $deltaX, $deltaY);"

Install

bower install angular-mousewheel or npm install angular-mousewheel

Include Hamster.js and the mousewheel.js script provided by this component in your app, and add monospaced.mousewheel to your app’s dependencies.

Demo

monospaced.github.io/angular-mousewheel

About

An AngularJS directive for cross-browser mouse wheel support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 86.9%
  • JavaScript 13.1%