The default browser is blocked by the mouse roll in the flash.

After my firefox was automatically updated to FF17, MAC, OSX 10.8.2, I found this problem.
Any suggestions and hints?

Question:
I use javascript preventDefault(); and stopPropagation(); to cancel the default scroll event by the mouse wheel, it works normally.
But when the mouse hovers over This does not work when scrolling on the flash object and through the mouse wheel.

Actually, I have a flash panel that can be controlled through the mouse wheel. The flash object is embedded in the middle of the html document,
you You need to scroll down in the browser to view the Flash content. When I focus on the Flash content and scroll through the mouse wheel,
The browser is also scrolling and makes the flash content invisible.

Reproduce Question:
1. Place a simple blank flash object at the very bottom of the html. Make sure you need to scroll down to view the Flash object in the browser.

>For ease of explanation, you can use This JavaScript to stop all mouse wheel activities on the page:
(If necessary, please press the “space bar” to reach the flash object at the bottom of the html)

window.addEventListener(‘DOMMouseScroll’,wheel,false );
window.addEventListener(‘mousewheel’,wheel,false);
window.addEventListener(‘MozMousePixelScroll’,wheel,false);
window.addEventListener(‘wheel’,wheel,false);
Function cancelEvent(e)
{
e = e? e: window.event;
if(e.stopPropagation)e.stopPropagation();
if(e.preventDefault)e.preventDefault();
e.cancelBubble = true;
e. cancel = true;
e.returnValue = false;
return false;
}
>Move the mouse on the flash object and use the wheel, you will find that the browser is also scrolling.

Expected result:
The mouse wheel can only control the flash object through the above script, but not the browser.

< div class="answer"> I have encountered a website where there is a flash object for the entire order processing, but the object is a fixed size and does not fit my laptop screen. They forbid scrolling inside and outside the flash object, that is The entire page. Absolutely annoying user experience, I have to move the mouse pointer to the far right and use the browser scroll bar instead of the mouse wheel. This website “https://internetorder.dominos.com.au/estore/” Is it the same as your behavior (through any page of the homepage)? If so, it may provide you with a way to make an impact on your users. Not that I agree with this in any way.

After my firefox was automatically updated to FF17, MAC, OSX 10.8.2, I found this problem.
Any suggestions and hints?

Question:
I use javascript preventDefault(); and stopPropagation(); to cancel the default scroll event by the mouse wheel, it works normally.
But when the mouse hovers over This does not work when scrolling on the flash object and through the mouse wheel.

Actually, I have a flash panel that can be controlled through the mouse wheel. The flash object is embedded in the middle of the html document,
you You need to scroll down in the browser to view the Flash content. When I focus on the Flash content and scroll through the mouse wheel,
The browser is also scrolling and makes the flash content invisible.

Reproduce Question:
1. Place a simple blank flash object at the very bottom of the html. Make sure you need to scroll down to view the Flash object in the browser.

>For ease of explanation, you can use This JavaScript to stop all mouse wheel activities on the page:
(If necessary, please press the “space bar” to reach the flash object at the bottom of the html)

window.addEventListener(‘DOMMouseScroll’,wheel,false );
window.addEventListener(‘mousewheel’,wheel,false);
window.addEventListener(‘MozMousePixelScroll’,wheel,false);
window.addEventListener(‘wheel’,wheel,false);
Function cancelEvent(e)
{
e = e? e: window.event;
if(e.stopPropagation)e.stopPropagation();
if(e.preventDefault)e.preventDefault();
e.cancelBubble = true;
e. cancel = true;
e.returnValue = false;
return false;
}
>Move the mouse on the flash object and use the wheel, you will find that the browser is also scrolling.

Expected result:
The mouse wheel can only control the flash object through the above script, but not the browser.

I have encountered one Website, which has a flash object in the entire order processing, but the object is a fixed size, not suitable for my laptop screen. They forbid scrolling inside and outside the flash object object, that is, the entire page. Absolutely annoying user experience, I You must move the mouse pointer to the far right and use the browser scroll bar instead of the mouse wheel. Is this website “https://internetorder.dominos.com.au/estore/” (any page through the homepage) related to your behavior Similarly, if so, it may provide you with a way to make an impact on your users. Not that I agree with this in any way.

Leave a Comment

Your email address will not be published.