Permalink
Browse files

Merge pull request #405 from drale2k/master

Added documentation for the "singleTap" event to README
  • Loading branch information...
madrobby committed Mar 17, 2012
2 parents 433df87 + 6133eab commit b5b9b41cfb7fc9087b05f712cea49dfa6f954732
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
@@ -211,6 +211,16 @@ Tapping:
$('some selector').tap(function(){ ... });
```
+Single Tap:
+
+Only use this instead of "tap" if you're using the "doubleTap" event. It it will give you a 250
+ms buffer to be able to differentiate between a single tap and a double tap. Don't use it if you're not
+using "doubleTap" since it will cause a 250 ms delay, which could lead to a bad user experience.
+
+``` js
+$('some selector').singleTap(function(){ ... });
+```
+
Double-tapping:
``` js

0 comments on commit b5b9b41

Please sign in to comment.