redraw on zoom changes
This commit is contained in:
parent
3f91f2f73c
commit
ab3bb9726e
@ -250,6 +250,9 @@ var PDFViewer = {
|
||||
PDFViewer.pageNumberInput.value = PDFViewer.pageNumber;
|
||||
PDFViewer.willJumpToPage = true;
|
||||
|
||||
if (document.location.hash.substr(1) == PDFViewer.pageNumber)
|
||||
// Force a "scroll event" to redraw
|
||||
setTimeout(window.onscroll, 0);
|
||||
document.location.hash = PDFViewer.pageNumber;
|
||||
|
||||
PDFViewer.previousPageButton.className = (PDFViewer.pageNumber === 1) ? 'disabled' : '';
|
||||
|
Loading…
Reference in New Issue
Block a user