Hi,
I am finding that when my mouse hovers over certain flash files in IE
I can no longer use my mouse wheel to scroll the browser window. At
the moment I have some JavaScript that captures the 'mousewheel' event
when the mouse is over a Div within the flash object. As you can see
in the following code this then forces the window to scroll by some
fixed amount:
DivID.addEvent('mousewheel', function(e) {
e.stop();
var scrollYPos;
if (e.wheel > 0) {
scrollYPos = window.getScroll().y ;
window.scrollTo(scrollYPos, scrollYPos - 40);
}
else if (e.wheel < 0) {
scrollYPos = window.getScroll().y;
window.scrollTo(scrollYPos ,scrollYPos + 40);
}
});
This works nicely but I am finding that the scroll speed is relative
the page height and possibly even by some settings on the user's
computer. Is it then possible to detect the distance one scroll move
does so when the user scrolls within the Flash object they don't
notice a difference in speed?
Thanks