Skip to content

Commit 8da9f34

Browse files
author
Adam Bradley
committed
fix(tap): error when releasing outside of browser
Closes ionic-team#1612
1 parent e75dd01 commit 8da9f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/utils/tap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ function tapActiveElement(ele) {
511511
}
512512

513513
function tapHasPointerMoved(endEvent) {
514-
if(!endEvent || !tapPointerStart || ( tapPointerStart.x === 0 && tapPointerStart.y === 0 )) {
514+
if(!endEvent || endEvent.target.nodeType !== 1 || !tapPointerStart || ( tapPointerStart.x === 0 && tapPointerStart.y === 0 )) {
515515
return false;
516516
}
517517
var endCoordinates = getPointerCoordinates(endEvent);

0 commit comments

Comments
 (0)