Browse Source

Merge pull request #362 from mohansun/patch-2

fix for the issue:https://github.com/andreasgal/pdf.js/issues/360
vingtetun 14 years ago
parent
commit
35aa31eb55
  1. 3
      web/viewer.js

3
web/viewer.js

@ -28,6 +28,9 @@ var PDFView = { @@ -28,6 +28,9 @@ var PDFView = {
for (var i = 0; i < pages.length; i++)
pages[i].update(val / 100 * cssUnits);
if(document.location.hash == '#' + this.page)
this.pages[this.page-1].draw();
else
// Jump the scroll position to the correct page.
document.location.hash = this.page;

Loading…
Cancel
Save