Problems with mousewheel in jQuery
<p>I have the following code in the head-section:</p>

<pre><code>&lt;script type='text/javascript' src='/js/jquery.mousewheel.min.js'&gt;&lt;/script&gt;

jQuery(function($) {
    $('#box').bind('mousewheel', function(event, delta) {
        var dir = delta &gt; 0 ? 'Up' : 'Down',
        vel = Math.abs(delta);
        alert(dir + ' at a velocity of ' + vel);
        return false;
    });
});
</code></pre>

<p>In firefox 5 nothing happens at all. In Chrome 13 and IE 9 I get "Down at a velocity of NaN", no matter at which direction I scroll.</p>

<p>How can I fix this? What I want to do is to check if the user is scorlliing upwards, or if he´s scrolling downwards.</p>

<p>Thanks for your help!</p>
