title: iScroll: Track Y Coordinate to addClass on Scroll
body: <p>When I log myScroll.y and myScrollPagesY, I get this: </p>
  
  <pre><code>var myScroll; 
  function loaded() { 
          myScroll = new iScroll('wrapper', { 
                  snap: 'div', 
          momentum: false}); 
  console.log(myScroll.y); 
  console.log(myScroll.pagesY); 
  } 
  </code></pre>
  
  <p>Output:</p>
  
  <p>0</p>
  
  <p>0, -422, -465</p>
  
  <p>So, the default numerical value is 0, but while I scroll I don't see the number change in the console.</p>
  
  <p>Do I have to somehow incorporate the iScroll refresh(); method to constantly update the Y coordinate?</p>
  
  <p>How would I write an if statement that basically said:</p>
  
  <p>if myScroll.y = a certain number then add the class "selected" to the nav button.</p>
  
  <p>Basically, as you are scrolling down the page I want the nav bar at the top to highlight when you hit a new section.</p>
  
  <p>Thanks in advance!</p>