Oh wow ... okay I'll have to look into that. I don't even remember the reason why I thought it didn't now. Heh that is going to simplfy some of my code. :)
Brandon On 9/26/06, Mark Gibson <[EMAIL PROTECTED]> wrote: > Brandon Aaron wrote: > > 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. > > Strange, I've managed to attach it to any element: > > el.addEventListener('DOMMouseScroll', function(e) { > console.log(e.detail); > e.preventDefault(); > }, false); > > Hover the mouse over the element and scroll, it worked fine! > The element doesn't even require focus. > (Firefox 1.5.0.7) > > e.detail usually contains 3 or -3. > > - Mark. > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/