title: IOS HTML disable double tap to zoom
body: <p>I am designing a website primarily focused on data entry. In one of my forms I have buttons to increment and decrement the number value in a form field quickly. I was using</p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"&gt;
  </code></pre>
  
  <p>to disable the zoom which appeared to work using the Firefox app for IOS. However, when another user tested it with Safari, clicking on the button too fast resulted in zooming in on the page, distracting the user and making it impossible to increase the value quickly. It appears that as of IOS 10, apple removed user-scalable=no for accessibility reasons, so that's why it only works in 3rd party browsers like Firefox. The closest I found to disabling double tap zoom was this</p>
  
  <pre><code>var lastTouchEnd = 0;
  document.addEventListener('touchend', function (event) {
      var now = (new Date()).getTime();
      if (now - lastTouchEnd &lt;= 300) {
          event.preventDefault();
      }
      lastTouchEnd = now;
  }, false);
  </code></pre>
  
  <p>from <a href="https://stackoverflow.com/a/38573198">https://stackoverflow.com/a/38573198</a>
  However, this disables quickly tapping altogether, which although prevents double tap zooming, also prevents the user from entering values quickly. Is there any way to allow a button to be pressed quickly, while also disabling double tap zooming?</p>