mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
fix for the issue:https://github.com/andreasgal/pdf.js/issues/360
This commit is contained in:
parent
73bb09bdad
commit
35cc5f9965
1 changed files with 6 additions and 3 deletions
|
@ -27,9 +27,12 @@ var PDFView = {
|
|||
var cssUnits = 96.0 / 72.0;
|
||||
for (var i = 0; i < pages.length; i++)
|
||||
pages[i].update(val / 100 * cssUnits);
|
||||
|
||||
// Jump the scroll position to the correct page.
|
||||
document.location.hash = this.page;
|
||||
|
||||
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;
|
||||
|
||||
var event = document.createEvent("UIEvents");
|
||||
event.initUIEvent("scalechange", false, false, window, val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue