title: Why/when do I have to tap twice to trigger click on iOS
body: <p>Ok I feel like I'm crazy...</p>
  
  <p>I'm looking at Mobile Safari on iOs 6.0.  I can't seem to establish any rhyme or reason as to when tapping on an element will trigger click.  In many cases, it seems I need to tap once to trigger a hover and then again to trigger a click.</p>
  
  <p>The <a href="http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html" rel="noreferrer">Mobile Safari spec</a> says : "... The flow of events generated by one-finger and two-finger gestures are conditional depending on whether or not the selected element is clickable or scrollable... A clickable element is a link, form element, image map area, or any other element with mousemove, mousedown, mouseup, or onclick handlers... Because of these differences, you might need to change some of your elements to clickable elements..."</p>
  
  <p>It goes on to suggest that the developer "...Add a dummy onclick handler, onclick = "void(0)", so that Safari on iOS recognizes the span element as a clickable element."</p>
  
  <p>However, my testing has shown these statements to be false.</p>
  
  <p>JsFiddle : <a href="http://jsfiddle.net/6Ymcy/1/" rel="noreferrer">http://jsfiddle.net/6Ymcy/1/</a></p>
  
  <p>html</p>
  
  <pre><code>&lt;div id="plain-div" onclick="void(0)"&gt;Plain Div&lt;/div&gt;
  </code></pre>
  
  <p>js</p>
  
  <pre><code>document.getElementById('plain-div').addEventListener('click', function() {
     alert('click'); 
  });
  </code></pre>
  
  <p>Try tapping the element on an iPad.  <strong>Nothing Happens</strong></p>
  
  <p>But I digress.  What is important to me is to find out the following question:</p>
  
  <p><strong>Exactly what are the criteria that determine when clicking on an element will fire a 'click' event on the first tap?</strong>  As opposed to firing a 'hover' event on the first tap and a 'click' event on the second tap.</p>
  
  <p>In my testing, anchor elements are the only elements that I can get to fire a click on the first tap, and then, only occasionally and inconsistently.</p>
  
  <p>Here's where I start to feel crazy.  I searched the internet far and wide and found next to nothing about this issue.  Is it just me?!  Does anybody know where there's been any discussion about the criteria for two-taps and or an approach to dealing with these limitations?</p>
  
  <p>I'm happy to respond to questions/requests.  </p>
  
  <p>Thanks!</p>