Flash receives mouse events under an HTML element when opacity set

Posted by Török Gábor on Stack Overflow See other posts from Stack Overflow or by Török Gábor
Published on 2010-03-27T15:35:13Z Indexed on 2010/03/27 15:43 UTC
Read the original article Hit count: 434

Filed under:
|
|
|
|

I have an HTML document with a Flash object and an absolutely positioned HTML element above it. If I set the HTML element's opacity CSS property to any value less than 1, the Flash object (that is actually covered) receives mouse events. This problem cannot be reproduced with pure HTML elements. Furthermore, Flash only receives hover events, so I cannot click below the layer.

I put a demonstration of the problem online.

I get this behavior in Firefox 3.6, Safari 4.0 and Chrome 5.0 in both Mac and Windows. Flash plugin version 10 is installed.

Is it a bug or the the normal and expected behavior? If the latter, then how can I prevent Flash receiving events when it is covered with a translucent layer?

© Stack Overflow or respective owner

Related posts about opacity

Related posts about html