title: JQuery autoscroll to bottom (but disable on mousescrolling)
body: <p>I load my content per $.get and "follow" the new appended data per javascript-auto-scrolling. Now I want to disable autoscrolling if the user "scrolls manually", but the following scroll-to-bottom function also triggers the Jquery .scroll()-function - so it disables itsef.</p>
  
  <pre><code>if(self.testelem.hasClass("active")){
      $(document).scrollTop($(document).height());
  }
  </code></pre>
  
  <p>How can I receive a mouse-wheel event or prevent scrollTop to trigger the .scroll()-function? I also tried to set a Timeout to block while scrollTop is working, but this isn't a great solution and has a few drawbacks.</p>
  
  <p>Any suggestions?</p>
  
  <p><strong>EDIT :</strong>
  My current code:</p>
  
  <p>I use the button #stb (scroll to bottom) and the class .active to to turn it off/on.</p>
  
  <pre><code>$.get("url", function(data){
      //do something          
      if(self.testelem.hasClass("active")){
          $(document).scrollTop($(document).height());
      }
  }); 
  
  $(document).scroll(function(){
      jQuery('html,body').queue([]).stop();  //try this
      //$("#stb").parent().removeClass("active");
  });
  </code></pre>
  
  <p>ps: Yes, I know. There are a few quite similar questions. I read them, but they differ in important points.</p>