Why this code dont work on chrome?
<p>i have this javascript code for my thumbnail scroller, it works perfect on firefox! but on chrome it does't work...</p>

<pre><code>    $(window).load(function(){

    var $gal2   = $("#gallery_holder2"),
        galWW   = $gal2.outerWidth(true),
        galSW  = $gal2[0].scrollWidth,
        wDiff  = (galSW/galWW)-1,  // widths difference ratio
        mPadd  = 20,  // Mousemove Padding
        damp   = 40,  // Mousemove response softness
        mX     = 0,   // Real mouse position
        mX2    = 0,   // Modified mouse position
        posX   = 0,
        mmAA   = galWW-(mPadd*2), // The mousemove available area
        mmAAr  = (galWW/mmAA);    // get available mousemove fidderence ratio

    $gal2.mousemove(function(e) {
        mX = e.pageX - $(this).parent().offset().left - this.offsetLeft;
        mX2 = Math.min( Math.max(0, mX-mPadd), mmAA ) * mmAAr;
    });

    setInterval(function(){
        posX += (mX2 - posX) / damp; // zeno's paradox equation "catching delay"    
        $gal2.scrollLeft(posX*wDiff);
    }, 10);

});
</code></pre>

<p>How can i fix it?</p>
