Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
replaces arbitrary distance and timing values with other arbitrary distance and timing values to try to improve responsiveness to subtle touch interactions.
  • Loading branch information
ajdinstel committed Feb 25, 2016
1 parent 9d86049 commit d618b6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d618b6b

Please sign in to comment.