fix(tap): error when releasing outside of browser

Closes #1612
This commit is contained in:
Adam Bradley
2014-06-12 20:23:12 -05:00
parent e75dd01663
commit 8da9f34ba2

View File

@@ -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);