Skip to content

Commit

Permalink
fix(tap): error when releasing outside of browser
Browse files Browse the repository at this point in the history
Closes #1612
  • Loading branch information
Adam Bradley committed Jun 13, 2014
1 parent e75dd01 commit 8da9f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/utils/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function tapActiveElement(ele) {
}

function tapHasPointerMoved(endEvent) {
if(!endEvent || !tapPointerStart || ( tapPointerStart.x === 0 && tapPointerStart.y === 0 )) {
if(!endEvent || endEvent.target.nodeType !== 1 || !tapPointerStart || ( tapPointerStart.x === 0 && tapPointerStart.y === 0 )) {
return false;
}
var endCoordinates = getPointerCoordinates(endEvent);
Expand Down

0 comments on commit 8da9f34

Please sign in to comment.