From 8da9f34ba27a16c629e9373e8d4120adb52a09de Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 12 Jun 2014 20:23:12 -0500 Subject: [PATCH] fix(tap): error when releasing outside of browser Closes #1612 --- js/utils/tap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/utils/tap.js b/js/utils/tap.js index c64f886bc8c..8290588e9a8 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -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);