This post originated from an RSS feed registered with Web Buzz
by Stuart Langridge.
Original Post: Mousewheel scrolling event in Mozilla
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Did you know that Mozilla doesn’t fire the scroll event when you scroll a page with the mousewheel? Pretty annoying, that. However, I have just discovered that it does fire the DOMMouseScroll event. So, if you’re annoyed that using the mouse wheel doesn’t give you a scroll event, trap the DOMMouseScroll event instead, with window.addEventListener('DOMMouseScroll', [...]