Nice Brandon...

IE7 here. Everything seemed to work as promised except test 6 which says
"should only do something when the mousewheel is moved down." yet I got a
response in the monitor pane when I moved the mousewheel up. Just FYI.

This works really well, you should be proud of yourself. I can easily where
many people will leverage your work.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Brandon Aaron
Sent: Thursday, January 11, 2007 8:36 AM
To: jQuery Discussion.
Subject: [jQuery] mousewheel plugin updated

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/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to