From 550890c8dea5aa1d83998e681b594af2178945a6 Mon Sep 17 00:00:00 2001 From: Ernst Naezer Date: Thu, 27 Oct 2011 12:59:20 +0300 Subject: [PATCH] Hi, I'm running the code on a touch screen and it's very difficult to keep your hand absolutely still to trigger the long click event. Removing the mousemove restriction fixes this issue. Is this something you might want to consider applying to the main branch? --- jquery.longclick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.longclick.js b/jquery.longclick.js index 0cdb4af..581c6ab 100644 --- a/jquery.longclick.js +++ b/jquery.longclick.js @@ -69,7 +69,7 @@ /* normal technique for standard mouse-based interaction */ $(this) .bind(_mousedown_, schedule) - .bind([_mousemove_, _mouseup_, _mouseout_, _contextmenu_].join(' '), annul) + .bind([_mouseup_, _mouseout_, _contextmenu_].join(' '), annul) .bind(_click_, click) }else{ /* and special handling for touch-based interaction on iPhone-compatibile devices */