MouseWheel 0.1
A pseudo event which tries to give mousewheel a more consisent detail, deltaX, and deltaY. ( basically a combination of the implementation found in google closure and qooxdoo )
Details
- Author
- jacob thornton
- Current version
- 0.1
- GitHub
- jacobthornton/MouseWheel
- Downloads
- 939
- Category
- Utilities
- Tags
- Report
- GitHub Issues
Releases
Dependencies
-
_self_/_current_:
- Core/Class.Extras
- Core/Slick.Parser
- More/MooTools.More
- More/Events.Pseudos
How to use
Use the :normalize pseudo when adding a mousewheel event to access a normalized events detail, detlaX, and deltaY. Simply access these properties from the event object, as you normally would.
document.id('container').addEvent('mousewheel:normalize', function(e){
console.log(e.detail, e.deltaX, e.deltaY);
});
Arbitrary Section
Arbitrary section is arbitrary.
<3 @fat
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus