Browse Source

(Yet another) browsing history bug

Jonas 12 years ago
parent
commit
5cb3df7bde
  1. 6
      web/viewer.js

6
web/viewer.js

@ -707,6 +707,7 @@ var PDFHistory = { @@ -707,6 +707,7 @@ var PDFHistory = {
this.currentPage = 0;
this.updatePreviousBookmark = false;
this.previousBookmark = '';
this.previousPage = 0;
this.nextHashParam = '';
this.fingerprint = fingerprint;
@ -814,6 +815,7 @@ var PDFHistory = { @@ -814,6 +815,7 @@ var PDFHistory = {
this.currentPage = pageNum | 0;
if (this.updatePreviousBookmark) {
this.previousBookmark = this.currentBookmark;
this.previousPage = this.currentPage;
this.updatePreviousBookmark = false;
}
}
@ -875,8 +877,8 @@ var PDFHistory = { @@ -875,8 +877,8 @@ var PDFHistory = {
if (this.previousBookmark === this.currentBookmark) {
return null;
}
} else if (this.current.page) {
if (this.current.page === this.currentPage) {
} else if (this.current.page || onlyCheckPage) {
if (this.previousPage === this.currentPage) {
return null;
}
} else {

Loading…
Cancel
Save