Posted By

thiagotargino on 09/20/11


Tagged

iphone touch ios deteccao


Versions (?)

JavaScript Touch and Gesture Events iPhone and Android


 / Published in: JavaScript
 

URL: http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html, http://davidwalsh.name/detect-iphone

  1. if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
  2. $("#seletor").bind('touchstart', function(){
  3.  
  4. });
  5. };

Report this snippet  

You need to login to post a comment.