1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-04 17:18:40 +00:00
This commit is contained in:
Lu Wang 2012-09-11 22:16:52 +08:00
parent 068f5b19a8
commit 0153a8bfc6

View File

@ -50,8 +50,8 @@ $(function() {
clearInterval(scrollTimer);
// Check when scrolling stops
scrollTimer = setInterval(function() {
// If scrolling pauses 300+ms
if (Date.now() - lastScrollTime > 300) {
// If scrolling pauses 200+ms
if (Date.now() - lastScrollTime > 200) {
clearInterval(scrollTimer);
// Only render pages that are or will be visible
selectiveRender();