Webcam Access unclickable

I just did a Facebook Webcam game and came across a nasty firefox bug. Sometimes the cam panel popping up is unclickable. (Firefox on Mac)

cam_access

The strange thing is:

  1. Works like a charm in Safari
  2. Works like a charm outside of Facebook

But I expierenced the problem on some pages outside FB aswell.

Here is the magic (once again thanks to Martin):

try{
    if ($.browser.mozilla) {
        $(window).resize(addMargin).resize();
    }
}catch(ex){}
 
function addMargin() {
    $("#cont").css('margin-left', window.outerWidth % 2 ? '0' : '0.5px')
}

The problem is that your swf is displayed on HALF PIXELS. Just move the container in which you putted your swf and it should work like a charm.

Link where i stole this from

 

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">