Skip to content

Commit

Permalink
More performant tapBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkaneda committed Dec 23, 2011
1 parent 5e77dcd commit 64d833d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jqtouch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
orientation='portrait',
touchSelectors=[],
publicObj={},
tapBuffer=150,
tapBuffer=100, // High click delay = ~350, quickest animation (slide) = 250
extensions=jQTouchCore.prototype.extensions,
animations=[],
hairExtensions='',
Expand Down Expand Up @@ -215,13 +215,13 @@
}
} else {
fromPage.removeClass(finalAnimationName + ' out current');
tapBuffer += 201;
bufferTime += 260;
}

// In class is intentionally delayed, as it is our ghost click hack
setTimeout(function(){
toPage.removeClass('in');
}, tapBuffer);
}, bufferTime);

// Housekeeping
$currentPage = toPage;
Expand Down

0 comments on commit 64d833d

Please sign in to comment.