title: mobile Safari vertical scrolling - how to detect when the window has stopped moving in Javascript
body: <p>Is there a js method to detect when a vertical flick on a long iOS safari page has stopped moving, such as an equivalent to the pseudo:</p>
  
  <pre><code>window.element.momentumScroll == false
  </code></pre>
  
  <p>This is to detect if the decelerating content is still moving or the scroll event has finished.</p>
  
  <p>Any and all clues gratefully received.</p>
  
  <p>ADDENDUM I have not implemented any external libraries in my code (no jQuery etc) and need to find a native js listener/method to tell me when the flick scroll has ended.</p>
  
  <pre><code>doc.addeventlistener("scroll", function(e){setvariable to 1}, false)
  
  doc.addeventlistener("noscroll", function(e){setvariable to 0}, false)
  </code></pre>