Skip to content

Commit

Permalink
Merge pull request madrobby#405 from drale2k/master
Browse files Browse the repository at this point in the history
Added documentation for the "singleTap" event to README
  • Loading branch information
madrobby committed Mar 17, 2012
2 parents 433df87 + 6133eab commit b5b9b41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5b9b41

Please sign in to comment.