(Yet another) browsing history bug
This commit is contained in:
parent
ccdff648f1
commit
5cb3df7bde
@ -707,6 +707,7 @@ var PDFHistory = {
|
|||||||
this.currentPage = 0;
|
this.currentPage = 0;
|
||||||
this.updatePreviousBookmark = false;
|
this.updatePreviousBookmark = false;
|
||||||
this.previousBookmark = '';
|
this.previousBookmark = '';
|
||||||
|
this.previousPage = 0;
|
||||||
this.nextHashParam = '';
|
this.nextHashParam = '';
|
||||||
|
|
||||||
this.fingerprint = fingerprint;
|
this.fingerprint = fingerprint;
|
||||||
@ -814,6 +815,7 @@ var PDFHistory = {
|
|||||||
this.currentPage = pageNum | 0;
|
this.currentPage = pageNum | 0;
|
||||||
if (this.updatePreviousBookmark) {
|
if (this.updatePreviousBookmark) {
|
||||||
this.previousBookmark = this.currentBookmark;
|
this.previousBookmark = this.currentBookmark;
|
||||||
|
this.previousPage = this.currentPage;
|
||||||
this.updatePreviousBookmark = false;
|
this.updatePreviousBookmark = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -875,8 +877,8 @@ var PDFHistory = {
|
|||||||
if (this.previousBookmark === this.currentBookmark) {
|
if (this.previousBookmark === this.currentBookmark) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else if (this.current.page) {
|
} else if (this.current.page || onlyCheckPage) {
|
||||||
if (this.current.page === this.currentPage) {
|
if (this.previousPage === this.currentPage) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user