<?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/tags/touch</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 05:15:47 GMT</pubDate>
<item>
<title>(jQuery) Javascript touch events from click - bitsculptor</title>
<link>http://snipplr.com/view/70525/javascript-touch-events-from-click/</link>
<description><![CDATA[ <p>Add the init() function to your document.ready call. This allows touch events to be handled like click events.</p> ]]></description>
<pubDate>Sat, 23 Mar 2013 05:42:58 GMT</pubDate>
<guid>http://snipplr.com/view/70525/javascript-touch-events-from-click/</guid>
</item>
<item>
<title>(C#) Simple Touch Input - jquery404</title>
<link>http://snipplr.com/view/67040/simple-touch-input/</link>
<description><![CDATA[ <p>Simple touch detection in unity for mob devices</p> ]]></description>
<pubDate>Tue, 04 Sep 2012 08:21:56 GMT</pubDate>
<guid>http://snipplr.com/view/67040/simple-touch-input/</guid>
</item>
<item>
<title>(C#) On Touch Down - jquery404</title>
<link>http://snipplr.com/view/66901/on-touch-down/</link>
<description><![CDATA[ <p>On Touch down .. attach this script in Main Camera</p> ]]></description>
<pubDate>Sat, 25 Aug 2012 18:22:14 GMT</pubDate>
<guid>http://snipplr.com/view/66901/on-touch-down/</guid>
</item>
<item>
<title>(HTML) iOS and Android Touch Icon Rules - luizlopes</title>
<link>http://snipplr.com/view/63364/ios-and-android-touch-icon-rules/</link>
<description><![CDATA[ <p>HTML Snippet for apple-touch-icon for all of the different iOS devices, and Android 2.0 supported Icon.</p> ]]></description>
<pubDate>Thu, 16 Feb 2012 07:08:23 GMT</pubDate>
<guid>http://snipplr.com/view/63364/ios-and-android-touch-icon-rules/</guid>
</item>
<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>(HTML) Favicon and Apple Touch Icon - Huskie</title>
<link>http://snipplr.com/view/62493/favicon-and-apple-touch-icon/</link>
<description><![CDATA[ <p>If you place favicon.ico and apple-touch-icon.png in the root of your website, these references are NOT required.</p> ]]></description>
<pubDate>Thu, 12 Jan 2012 02:01:25 GMT</pubDate>
<guid>http://snipplr.com/view/62493/favicon-and-apple-touch-icon/</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>(Objective C) Enable UIButton inside UIImageView - vaishnavi</title>
<link>http://snipplr.com/view/58742/enable-uibutton-inside-uiimageview/</link>
<description><![CDATA[ <p>When you add a UIButton as a subview to UIImageView, it will not correspond to touch events automatically, UIImageView's userinteraction property needs to be set</p> ]]></description>
<pubDate>Fri, 16 Sep 2011 19:24:58 GMT</pubDate>
<guid>http://snipplr.com/view/58742/enable-uibutton-inside-uiimageview/</guid>
</item>
<item>
<title>(PHP) How to easily detect mobile devices - dropthenerd</title>
<link>http://snipplr.com/view/47549/how-to-easily-detect-mobile-devices/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Jan 2011 02:14:13 GMT</pubDate>
<guid>http://snipplr.com/view/47549/how-to-easily-detect-mobile-devices/</guid>
</item>
<item>
<title>(iPhone) drag n drop javascript to iphone support - ringingEars</title>
<link>http://snipplr.com/view/46171/drag-n-drop-javascript-to-iphone-support/</link>
<description><![CDATA[ <p>turns screen touches into mouse clicks - useful for porting drag n drop to iphone / ipad</p> ]]></description>
<pubDate>Tue, 28 Dec 2010 09:51:12 GMT</pubDate>
<guid>http://snipplr.com/view/46171/drag-n-drop-javascript-to-iphone-support/</guid>
</item>
<item>
<title>(PHP) Detect touch - DADU</title>
<link>http://snipplr.com/view/46068/detect-touch/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 23 Dec 2010 10:18:07 GMT</pubDate>
<guid>http://snipplr.com/view/46068/detect-touch/</guid>
</item>
<item>
<title>(Objective C) Detecting a multitouch - tenveer</title>
<link>http://snipplr.com/view/41571/detecting-a-multitouch/</link>
<description><![CDATA[ <p>written in touchesbegin</p> ]]></description>
<pubDate>Tue, 05 Oct 2010 22:19:52 GMT</pubDate>
<guid>http://snipplr.com/view/41571/detecting-a-multitouch/</guid>
</item>
<item>
<title>(HTML) Mobile View - JohnGR</title>
<link>http://snipplr.com/view/41559/mobile-view/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 05 Oct 2010 16:29:53 GMT</pubDate>
<guid>http://snipplr.com/view/41559/mobile-view/</guid>
</item>
<item>
<title>(Objective C) Determine device (iPhone, iPod Touch) with iPhone SDK - espinallab</title>
<link>http://snipplr.com/view/38644/determine-device-iphone-ipod-touch-with-iphone-sdk/</link>
<description><![CDATA[ <p>Here is how to determine the device type.\r\n\r\nHow to use it.\r\n\r\nUIDeviceHardware *h=[[UIDeviceHardware alloc] init];\r\n[self setDeviceModel:[h platformString]];   \r\n[h release];</p> ]]></description>
<pubDate>Sat, 07 Aug 2010 00:08:15 GMT</pubDate>
<guid>http://snipplr.com/view/38644/determine-device-iphone-ipod-touch-with-iphone-sdk/</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>(Python) tiles_visited - anosognosia</title>
<link>http://snipplr.com/view/35601/tilesvisited/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 08 Jun 2010 11:38:57 GMT</pubDate>
<guid>http://snipplr.com/view/35601/tilesvisited/</guid>
</item>
<item>
<title>(Bash) Create empty document - dorseye</title>
<link>http://snipplr.com/view/18220/create-empty-document/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 12 Aug 2009 14:37:18 GMT</pubDate>
<guid>http://snipplr.com/view/18220/create-empty-document/</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>