title: Why doesn't this wheel scroll function run in Firefox?
body: <p>I'm trying to click on the next or previous <code>li</code> in a fixed element based on the wheel delta. It's working well in IE and Chrome, but not in Firefox.</p>
  
  <pre><code>var itemisMoving=false;
  function scrollControls() {
      $(document).bind("mousewheel DOMMouseScroll", function(event, delta) {
          event.preventDefault();
          if (itemisMoving) return;
          navigateTo();
      });
      function navigateTo(e){
          itemisMoving = true;
          var evt = window.event || e
          evt = evt.originalEvent ? evt.originalEvent : evt;
          var delta = evt.detail ? evt.detail*(-40) : evt.wheelDelta;
          var itemcurslide = $('.itemw3 ul li.current');
          if(delta &gt; 0) {
              itemcurslide.prev('li').click();
          }
          else{
              itemcurslide.next('li').click();
          }
          setTimeout(function() {
              itemisMoving=false;
          },1000);
      }
  }
  </code></pre>