Real page distance between two pages is 10
This commit is contained in:
parent
30bf683896
commit
eedaa159a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user