forked from 0x2620/pandora
fix scrolling up in pdfs
This commit is contained in:
parent
35cb81a19c
commit
beddf586d1
3 changed files with 6 additions and 3 deletions
|
@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
}
|
||||
|
||||
PDFJS.version = '0.8.798';
|
||||
PDFJS.build = '25c476a';
|
||||
PDFJS.build = '5cd9fec';
|
||||
|
||||
(function pdfjsWrapper() {
|
||||
// Use strict in our context only - users might not want it
|
||||
|
|
2
static/pdf.js/pdf.worker.js
vendored
2
static/pdf.js/pdf.worker.js
vendored
|
@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
}
|
||||
|
||||
PDFJS.version = '0.8.798';
|
||||
PDFJS.build = '25c476a';
|
||||
PDFJS.build = '5cd9fec';
|
||||
|
||||
(function pdfjsWrapper() {
|
||||
// Use strict in our context only - users might not want it
|
||||
|
|
|
@ -4978,7 +4978,10 @@ function updateViewarea() {
|
|||
});
|
||||
var href = PDFView.getAnchorUrl(pdfOpenParams);
|
||||
document.getElementById('viewBookmark').href = href;
|
||||
document.location.hash = '#page=' + pageNumber;
|
||||
document.getElementById('secondaryViewBookmark').href = href;
|
||||
|
||||
// Update the current bookmark in the browsing history.
|
||||
PDFHistory.updateCurrentBookmark(pdfOpenParams, pageNumber);
|
||||
}
|
||||
|
||||
window.addEventListener('resize', function webViewerResize(evt) {
|
||||
|
|
Loading…
Reference in a new issue