How to add a cross-browser mouse wheel function to a div in javascript?
Posted
by Shaunwithanau
on Stack Overflow
See other posts from Stack Overflow
or by Shaunwithanau
Published on 2010-04-16T15:42:41Z
Indexed on
2010/04/16
15:43 UTC
Read the original article
Hit count: 182
I am trying to stop the default mouse wheel event that is called on the window and on a div and call my own function instead on the div. I need this to be cross-browser (without the use of a library. I know I need to use an eventListener and I think have to use both onmousewheel and DOMMouseScroll (for FF) but I think am getting caught up in the implementation somewhere.
I appreciate any and all help.
© Stack Overflow or respective owner