From d618b6be6587db1e06376def58ef94df6a4ecbbf Mon Sep 17 00:00:00 2001 From: ajdinstel Date: Thu, 25 Feb 2016 15:47:59 -0700 Subject: [PATCH] Update script.js replaces arbitrary distance and timing values with other arbitrary distance and timing values to try to improve responsiveness to subtle touch interactions. --- js/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/script.js b/js/script.js index 1402fe5..14eba98 100644 --- a/js/script.js +++ b/js/script.js @@ -785,16 +785,16 @@ peekABoo.endTime = new Date().getTime(); - if (peekABoo.endTime - peekABoo.startTime < 150) { + if (peekABoo.endTime - peekABoo.startTime < 50) { return false; } - if ((peekABoo.dragStartMousePosX - peekABoo.mouseUpEndX) >= 100){ + if ((peekABoo.dragStartMousePosX - peekABoo.mouseUpEndX) >= 20){ $pagingGoToNext.trigger('click'); return false; } - if ((peekABoo.mouseUpEndX - peekABoo.dragStartMousePosX) >= 100){ + if ((peekABoo.mouseUpEndX - peekABoo.dragStartMousePosX) >= 20){ $pagingGoToPrev.trigger('click'); return false; }