title: JS onMouseDown and onMouseUp events Safari iPhone: can not make them working
body: <p>I'm using iPhone with iOS 10.3.2(14F89) and its correspondent Safari.</p>
  
  <p>My goal is: when the user starts tapping (presses) an image I need to receive "onMouseDown" event and when he/she finishes tapping the image I need to receive "onMouseUp" (released) event.</p>
  
  <p>After searching and making lots of tests with following code:</p>
  
  <pre><code>&lt;style&gt;
     body { -webkit-touch-callout: unset !important; }
     img  { -webkit-user-select: none !important; } 
  &lt;/style&gt;
  
  &lt;body&gt;
     &lt;img src="an_image.png" onMouseDown="onPressed()" onMouseUp="onReleased()"&gt;
  &lt;/body&gt;
  
  &lt;script&gt;
      function onPressed()
      {
          console.log( "pressed" );
      }
  
      function onReleased()
      {
          console.log( "released" );
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>But the contextual menu always appear or at least the magnifier.
  I tried also other "-webkit" directives with no luck.</p>
  
  <p>Thank you very much in advance for your help.</p>