From eedaa159a921a26608bcc6011559478f2c7dc101 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Thu, 30 Jun 2011 21:12:42 -0500 Subject: [PATCH] Real page distance between two pages is 10 --- multi_page_viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multi_page_viewer.js b/multi_page_viewer.js index 180e715eb..2f5f47b69 100644 --- a/multi_page_viewer.js +++ b/multi_page_viewer.js @@ -43,12 +43,12 @@ var PDFViewer = { lastPagesDrawn: [], visiblePages: function() { - const pageBottomMargin = 20; + const pageBottomMargin = 10; var windowTop = window.pageYOffset; var windowBottom = window.pageYOffset + window.innerHeight; var pageHeight, page; - var i, n = PDFViewer.numberOfPages, currentHeight = 0; + var i, n = PDFViewer.numberOfPages, currentHeight = pageBottomMargin; for (i = 1; i <= n; i++) { var page = PDFViewer.pdf.getPage(i); pageHeight = PDFViewer.pageHeight(page) + pageBottomMargin;