<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Helvensteijn.com &#187; click&amp;hold</title>
	<atom:link href="http://helvensteijn.com/tag/clickhold/feed/" rel="self" type="application/rss+xml" />
	<link>http://helvensteijn.com</link>
	<description>The glass is neither half full nor half empty; It is simply oversized</description>
	<lastBuildDate>Fri, 17 Feb 2012 03:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Click &amp; Hold</title>
		<link>http://helvensteijn.com/2010/03/23/click-and-hold/</link>
		<comments>http://helvensteijn.com/2010/03/23/click-and-hold/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 08:55:17 +0000</pubDate>
		<dc:creator>Colin Helvensteijn</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[click&hold]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://helvensteijn.com/?p=1258</guid>
		<description><![CDATA[It&#8217;s actually kind of weird. Mac OS X has a click &#038; hold gesture in its Dock, as an alternative for right clicking or &#8212; since Snow Leopard &#8212; for Expos&#233;. iPhone OS has a tap &#038; hold gesture to select text or to bring up some options for links in Safari. On the other &#8230; <a class="more-link" href="http://helvensteijn.com/2010/03/23/click-and-hold/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s actually kind of weird. Mac OS X has a click &#038; hold gesture in its Dock, as an alternative for right clicking or &#8212; since Snow Leopard &#8212; for Expos&eacute;. iPhone OS has a tap &#038; hold gesture to select text or to bring up some options for links in Safari. On the other hand, I have also seen web applications replacing the browser&#8217;s context menu with their own, which, in my opinion, is downright annoying. </p>
<p>But for some reason, I&#8217;ve never seen a web application use a click &#038; hold gesture, certainly not for a context menu. A <a href="http://www.google.com/search?q=click%20hold%20js&#038;ie=utf-8&#038;oe=utf-8">quick search</a> on Google didn&#8217;t really bring up anything either. Despite the fact that it could be so useful, if only to not hijack the right mouse button. Am I really the first one to think of this? Hard to imagine for something so trivial.</p>
<p>Anyway, since I couldn&#8217;t really find anything that does this, I just conjured up a proof of concept myself. It could probably use some improvement, but it conveys the general idea pretty well, <del datetime="2010-03-24T02:46:47+00:00">as long as you&#8217;re not using Internet Explorer</del> <ins datetime="2010-03-24T02:47:23+00:00">even in Internet Explorer</ins>.</p>
<p><a href="http://helvensteijn.com/code/contextmenu/" class="button">Proof of concept</a></p>
<p class="infobox">Update (March 26th, 2010)</p>
<p>I created a jQuery plugin that adds the click &#038; hold gesture as a custom event, which makes it ridiculously easy to bind your own code to it. You can read more about it and of course download it on the special demo page I created.</p>
<p><a href="http://helvensteijn.com/code/onclickhold/" class="button">More info / Demo / Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://helvensteijn.com/2010/03/23/click-and-hold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

