Return to Snippet

Revision: 51309
at September 20, 2011 23:53 by thiagotargino


Updated Code
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
    $("#seletor").bind('touchstart', function(){

    });
};

Revision: 51308
at September 20, 2011 23:48 by thiagotargino


Initial Code
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
    $("#aparelhos li").bind('touchstart', function(){

    });
};

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

Initial Description

                                

Initial Title
JavaScript Touch and Gesture Events iPhone and Android

Initial Tags
iphone, ios

Initial Language
JavaScript