title: Mouseup not working after mousemove on img
body: <p>I'm trying to do a simple drag script.
  The idea is to save the position when the mouse is down, update the view while the mouse is moving, and stop when mouse is up. Problem, mouseup event isn't working properly.</p>
  
  <p>See the code:</p>
  
  <pre><code>var target = $('a')
  var pos = 0;
  var dragging = false;
  
  $(document).mousedown(function(e) { pos=e.pageX; dragging = true })
  $(document).mouseup(function() { dragging = false })
  $(document).mousemove(function(e) {
      if(dragging){ 
          target.css('left', e.pageX-pos);
      }
  })  ​
  </code></pre>
  
  <p>Why mouseup works with a "a" tag:
  <a href="http://jsfiddle.net/leyou/c3TrG/1/" rel="noreferrer">http://jsfiddle.net/leyou/c3TrG/1/</a></p>
  
  <p>And why mouseup doesn't work with a "img" tag:
  <a href="http://jsfiddle.net/leyou/eNwzv/" rel="noreferrer">http://jsfiddle.net/leyou/eNwzv/</a></p>
  
  <p>Just try to drag them horizontally.</p>
  
  <p>Same probleme on ie9, ff and chrome. Windows7</p>