angular-mousewheel

An AngularJS directive for cross-browser mouse wheel support.

Homepage

Angular Core Dependency: >=1.0.6

Module License: MIT

Added by: Sam Deering

GitHub

Repository

monospaced/angular-mousewheel

Stats

Stars: 51

Watchers: 51

Forks: 8

Author

Scott Boyle
Scott Boyle

Module Description

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

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

Module stats last updated: 2017-02-10 16:00:05

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!