title: how do I call the mousedown event in javascript as long as mouse is held down
body: <p>I am implementing a joystick control where I want to call the mousedown function after every 100msec as long as mouse click is held on by the user. How can I trigger this?</p>
  
  <pre><code>    var hammer = Hammer(document.getElementById('joystick'));
      hammer.on("mousemove", onMouseMove);
      hammer.on("mousedown", onMouseDown);
  </code></pre>
  
  <p>the above code only calls mousedown once initially. To trigger it again I have to release mouse button and click again.</p>