fix scrolling up in pdfs

This commit is contained in:
j 2013-12-31 16:40:24 +05:30
parent 35cb81a19c
commit beddf586d1
3 changed files with 6 additions and 3 deletions

View file

@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') {
} }
PDFJS.version = '0.8.798'; PDFJS.version = '0.8.798';
PDFJS.build = '25c476a'; PDFJS.build = '5cd9fec';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

View file

@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') {
} }
PDFJS.version = '0.8.798'; PDFJS.version = '0.8.798';
PDFJS.build = '25c476a'; PDFJS.build = '5cd9fec';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

View file

@ -4978,7 +4978,10 @@ function updateViewarea() {
}); });
var href = PDFView.getAnchorUrl(pdfOpenParams); var href = PDFView.getAnchorUrl(pdfOpenParams);
document.getElementById('viewBookmark').href = href; 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) { window.addEventListener('resize', function webViewerResize(evt) {