I'm trying to get the mouse position on mousescroll. I'm also trying to make this compatible with all browsers. So far I have the following javascript which listens for the mouse scroll event:
document.addEventListener('DOMMouseScroll', mouseScroll, false);
function mouseScroll(){
alert( /* mouse position code here */ );
}
But I'm not sure how to pass the event into the function to then use something like e.pageX and also I'm not sure what event property to use.
