From 72ee799c4e26c916bd330e2fdd093a297a928229 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 17 Mar 2014 19:32:17 -0500 Subject: [PATCH] fix(click): enter key submission blocked. Fixes #819 --- js/utils/tap.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/utils/tap.js b/js/utils/tap.js index 2b26d95d75..6dbd39a1e5 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -131,6 +131,11 @@ // check if this click's coordinates are different than its touchstart/mousedown var c = getCoordinates(event); + // Quick check for 0,0 which could be simulated mouse click for form submission + if(c.x === 0 && c.y === 0) { + return false; + } + return (c.x > startCoordinates.x + HIT_RADIUS || c.x < startCoordinates.x - HIT_RADIUS || c.y > startCoordinates.y + HIT_RADIUS ||