I've made some big changes to the mousehweel plugin. All of these changes are based on quality feedback from users of the mousehweel plugin. First, I really simplified the API. The only methods are: - mousewheel() - unmousewheel()
The mousewheel() method takes only one function and a second optional param called preventDefault. The function passed in still needs to be ready for two params, event and delta. The delta is a number greater or lesser than 0 indicating the velocity and direction of the mousewheel. The preventDefault param is defaulted to true now. There are two other features that I added in. You can now have nested elements that use the mousewheel event and you can add multiple handlers to the same element. Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html Source from SVN: http://jquery.com/dev/svn/trunk/plugins/mousewheel/mousewheel.js?format=txt Enjoy! -- Brandon Aaron _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
