Browse Source

[PDFHistory] Prevent the history from skipping entries in certain edge cases, when specifying an initialBookmark in the hash parameters on document load

Jonas Jenwald 12 years ago
parent
commit
fc73dbe695
  1. 6
      web/pdf_history.js

6
web/pdf_history.js

@ -202,10 +202,14 @@ var PDFHistory = { @@ -202,10 +202,14 @@ var PDFHistory = {
}
return;
}
if (this.nextHashParam && this.nextHashParam === params.hash) {
if (this.nextHashParam) {
if (this.nextHashParam === params.hash) {
this.nextHashParam = null;
this.updatePreviousBookmark = true;
return;
} else {
this.nextHashParam = null;
}
}
if (params.hash) {

Loading…
Cancel
Save