title: Detect scrolling after scrolling distance from current position in browser
body: <p>I want to detect if i am scrolling but only after I've scrolled a certain distance from my current location. When I stop scrolling, this distance resets to the current location</p>
  
  <p>I know how to detect scrolling past a certain point on the page with <code>.scrollTop()</code>, but I want this certain point to be my current location but only after I've stopped scrolling.</p>
  
  <p>Why I need this: I have a navbar that changes all of it's css depending on if I've scrolled up or down. So if my scroll finger shivers in a different direction (from up to down scroll for example), the navbar will transform like a strobe light. So my plan was to only detect scrolls abover or below 10px so the user will need to make a dedicated scroll to activate the navbar css change.</p>
  
  <p>pseudo code:</p>
  
  <pre><code>if (scrolled 10px above or below current_location in browser) {
    console.log('it worked');
  } else {
    console.log('You have not scrolled far enough!')
  }
  
  if (scrolling stops) {
    reset position of current_location. 
  }
  </code></pre>