Skip to content
Browse files

fixed stop event when no start event was raised.

  • Loading branch information...
1 parent 2aa8e94 commit 54cffe6b328c1c84793e245e0428c09e59f8d513 @ngryman committed Mar 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/jquery.finger.js
View
3 src/jquery.finger.js
@@ -102,6 +102,9 @@
now = event.timeStamp,
evtName;
+ // no start event fired, do nothing
+ if (!f.start) return;
+
// tap-like events
evtName = now - f.start.time < $.Finger.pressDuration ? 'tap' : 'press';
// is it a double tap ?

0 comments on commit 54cffe6

Please sign in to comment.
Something went wrong with that request. Please try again.