title: Scrolling a div with touch events
body: <p>How can I scroll a div with touch events? I have a DIV with overflow set to hidden. I know I can scroll a DIV with javascript, here is an example for using the mousewheel:</p>
  
  <pre><code>function mousewheelScroll(event, delta) {
      var $t = $(this);
      var change = delta * 8;
      var top = $t.scrollTop();
      top = top - change;
      if (top &lt; 0)
          top = 0;
      if (top &gt; ($t.attr("scrollHeight") - $t.innerHeight()))
          top = ($t.attr("scrollHeight") - $t.innerHeight());
      $t.scrollTop(top);
  }
  </code></pre>
  
  <p>But i haven't found an example that will work with touch events for iOS devices.</p>