<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/touch</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 21:22:48 GMT</pubDate>
<item>
<title>(JavaScript) Preventing elastic scrolling on iDevice - timothypwalter</title>
<link>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</link>
<description><![CDATA[ <p>If you a flick a web app past the bottom or top of the page, the page itself gets elastically tugged away from the URL bar or the button bar (or the bottom/top of the screen if it's in full-screen mode).

This behavior is another giveaway that your app isn't native, and it's rarely the behavior you want in a native app.

To stop this behavior, capture touchmove events on the document in JavaScript and cancel them. You can do this by adding a handler to the body tag, and invoking the preventDefault method on the event object:</p> ]]></description>
<pubDate>Thu, 02 Feb 2012 22:52:08 GMT</pubDate>
<guid>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Touch and Gesture Events iPhone and Android - thiagotargino</title>
<link>http://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 Sep 2011 23:48:30 GMT</pubDate>
<guid>http://snipplr.com/view/58852/javascript-touch-and-gesture-events-iphone-and-android/</guid>
</item>
<item>
<title>(JavaScript) isTouchDevice() - jpdevries</title>
<link>http://snipplr.com/view/38259/istouchdevice/</link>
<description><![CDATA[ <p>Google Chrome 5.0.375.125 on Mac OS X 10.6 presents itself returns true for this function, even though its not really a touch device?</p> ]]></description>
<pubDate>Tue, 03 Aug 2010 10:21:10 GMT</pubDate>
<guid>http://snipplr.com/view/38259/istouchdevice/</guid>
</item>
<item>
<title>(JavaScript) How To Connect To A SOCKS Proxy From An Unjailbroken iPhone/iPod Touch - shaunchapman</title>
<link>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</link>
<description><![CDATA[ <p>Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/iPod Touch.  This is actually pretty easy to accomplish.

First, you need to make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it.  To do this, you simply need to add `-g` to your existing SSH command (something like `ssh -N -g -D 1080 user@domain.com`).

Most people think you can't connect to a SOCKS proxy from an iPhone/iPod Touch without jailbreaking it but the truth is you can.  You simply have to create a Proxy Auto-Config (PAC) file, insert the function below in it (replace the *x*'s with your IP and the *y*'s with the port you used after the `-D` in your SSH command), and save it to a web accessible place with a *.pac* extension.  If you're reading this chances are you know how to serve a file over HTTP on your work LAN, so I won't delve into that.

Finally, on your iPhone/iPod Touch, go to *Settings > Wifi* and click the blue arrow to the right of your work network, scroll to the bottom, click *Auto* and type in the address to your PAC file (*e.g. http://192.168.xx.xx/mysupersecretproxy.pac*).

Congrats!  Now you can surf the web securely from your iPhone/iPod touch ;)</p> ]]></description>
<pubDate>Wed, 01 Jul 2009 13:51:50 GMT</pubDate>
<guid>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</guid>
</item>
<item>
<title>(JavaScript) iPhone/iPod Touch detection - Nanobyte</title>
<link>http://snipplr.com/view/15401/iphoneipod-touch-detection/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 May 2009 15:58:48 GMT</pubDate>
<guid>http://snipplr.com/view/15401/iphoneipod-touch-detection/</guid>
</item>
</channel>
</rss>