title: Why does Chrome raise a mousemove on mousedown?
body: <p>I have noticed that in Chrome (I'm using Chrome 35.0.1916.114 [<strong>UPDATE</strong>: also occurs in "35.0.1916.153 m"], Windows 7 64-bit) when I click the left button not only is a mouseDown event raised (as I expect) but also a mouseMove.</p>
  
  <p>In <a href="http://jsfiddle.net/MtMh4/2/" rel="noreferrer">this fiddle</a> if you click in the input element you will see a 'D' for each mouseDown event raised and an 'M' for each mouseMove.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input id="txt" type="text"/&gt;
  &lt;p&gt;Moves&lt;/p&gt;&lt;p id="moves"&gt;0&lt;/p&gt;
  &lt;p&gt;Downs&lt;/p&gt;&lt;p id="downs"&gt;0&lt;/p&gt;
  &lt;p id="activity"&gt;Activity&lt;/p&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$( "#txt" ).mousedown(function() {
       document.getElementById("activity").innerHTML +="D";
      update(false,true);
  });
  $( "#txt" ).mousemove(function() {
      document.getElementById("activity").innerHTML +="M";
      update(true,false);
  });
  
  function update(move, down) 
  {
      var moves=document.getElementById("moves").innerHTML;
      if (move) 
      {
          moves ++;
          document.getElementById("moves").innerHTML=moves;
      }
  
      var downs=document.getElementById("downs").innerHTML;
      if (down) 
      {
          downs ++;
          document.getElementById("downs").innerHTML=downs;
      }
      var d=parseInt(downs);
      var m=parseInt(moves);
      if ((d+m)%25==0)
      {
          document.getElementById("activity").innerHTML +="&lt;br&gt;";
      }
  }
  </code></pre>
  
  <p>In FF and IE11 once the cursor is in the input element then you will be able to get consecutive 'D's (ie, a click raises a single mouseDown event). In Chrome each mouse click raises a mouseDown and two mouseMove events.</p>
  
  <p>This is not due to any slight wobbling of the mouse as I use a trackball so the cursor is absolutely stationary.</p>
  
  <p>Is anyone aware of a workaround for this?</p>
  
  <p>Thanks
  Dave</p>