title: Jquery, unbinding mousewheel event, then rebinding it after actions are completed?
body: <p>I've been struggling with this for a little while now.. I am using this code to monitor the mousewheel so it can be used for scrolling with a slider that I have.. however, it has an issue where the actions queue up so if you scroll with the mousewheel fast (like anyone would do normally) they build up and it causes buggy behavior.. I know about handling this sort of issue with animation, but not with a mousewheel monitor..</p>
  
  <p>I want to do something like unbind the mousewheel at the start of the action (in this case, to scroll the scrollbar after mousewheel is moved) then rebind it after this, so if user does too many scrolls too fast it just ignores until the initial scroll is completed.. I tried the code below but its not rebinding so I'm not sure what I am doing wrong, any advice is appreciated.</p>
  
  <pre><code>        $("#wavetextcontainer").bind("mousewheel", function(event, delta) {
  
     //HERE IS WHERE EVENT IS UNBOUND:
       $("#wavetextcontainer").unbind("mousewheel");
  
          var speed = 10;
          var mySlider = $("#slider");
          var sliderVal = mySlider.slider("option", "value");
  
          sliderVal += (delta*speed);
  
          if (sliderVal &gt; mySlider.slider("option", "max")) sliderVal = mySlider.slider("option", "max");
          else if (sliderVal &lt; mySlider.slider("option", "min")) sliderVal = mySlider.slider("option", "min");
  
          $("#slider").slider("value", sliderVal);
  
          event.preventDefault();
  
        // HERE I WANT TO REBIND THE EVENT:
       $("#wavetextcontainer").bind("mousewheel");
  
  });
  </code></pre>