Skip to content

Commit

Permalink
Merge pull request #339 from samuelhorwitz/samuelhorwitz/issue324-tou…
Browse files Browse the repository at this point in the history
…chcancel

Tap gestures no longer triggered by "touchcancel" browser events
  • Loading branch information
jtangelder committed Sep 12, 2013
2 parents 1adcd69 + 35a7bee commit 1eaef6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Hammer.gestures.Tap = {
doubletap_interval : 300
},
handler: function tapGesture(ev, inst) {
if(ev.eventType == Hammer.EVENT_END) {
if(ev.eventType == Hammer.EVENT_END && ev.srcEvent.type != 'touchcancel') {
// previous gesture, for the double tap since these are two different gesture detections
var prev = Hammer.detection.previous,
did_doubletap = false;
Expand Down

0 comments on commit 1eaef6b

Please sign in to comment.