I've actually just recently implemented the mousewheel and thought
about writting it as a plugin. There are a few special situations that
need to be considered. For example IE allows a mousewheel event to be
attached to an element in the dom and Firefox allows it only to be
attached to the document. So I have normalized this so that you can
attach a mousewheel event to elements in the dom. The unfortunate part
is that it doesn't work in Safari, yet. I'm not sure about Opera.

I actually wrote this for a custom scrollbar and allows the mousewheel
to be used in any div that has the scrollbar when you mouseover it.

Again, as with everything it take time to do it right and do the
tests. I've got lots on my plate but this is something I would like to
pursue in more depth.

Brandon

On 9/26/06, Webunity | Gilles van den Hoven <[EMAIL PROTECTED]> wrote:
> Mathias Bank wrote:
> > It seems, that mousewheel is not an accepted event in jquery. So I
> > have written a small plugin that can handle wheel events. It is based
> > on http://adomas.org/javascript-mouse-wheel/.
> Nice! I just sent an email about the exact same page to John today (3
> hours ago), telling him we need Mousewheel support!
> I think however that you c&p'd much of the code there, and i think a lot
> of the code could be removed since it is allready in the jQuery core.
>
> I hope that John gives his reaction to this!
>
> -- Gilles
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

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

Reply via email to