Merge pull request #3691 from Snuffleupagus/PDFHistory-followup-3341
[PDFHistory] Prevent the history from skipping entries in certain edge cases, when specifying an initialBookmark in the hash parameters on document load
This commit is contained in:
commit
e79935d8b3
@ -202,10 +202,14 @@ var PDFHistory = {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.nextHashParam && this.nextHashParam === params.hash) {
|
if (this.nextHashParam) {
|
||||||
this.nextHashParam = null;
|
if (this.nextHashParam === params.hash) {
|
||||||
this.updatePreviousBookmark = true;
|
this.nextHashParam = null;
|
||||||
return;
|
this.updatePreviousBookmark = true;
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
this.nextHashParam = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.hash) {
|
if (params.hash) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user