Merge pull request #10340 from Snuffleupagus/history-tryPushCurrentPosition-viewer-modes
Tweak the `PDFHistory._tryPushCurrentPosition` method to work better with the different Scroll/Spread viewer modes
This commit is contained in:
commit
5b8c51c1bf
@ -329,8 +329,8 @@ class PDFHistory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let forceReplace = false;
|
let forceReplace = false;
|
||||||
if (this._destination.page === position.first ||
|
if (this._destination.page >= position.first &&
|
||||||
this._destination.page === position.page) {
|
this._destination.page <= position.page) {
|
||||||
// When the `page` of `this._destination` is still visible, do not
|
// When the `page` of `this._destination` is still visible, do not
|
||||||
// update the browsing history when `this._destination` either:
|
// update the browsing history when `this._destination` either:
|
||||||
// - contains an internal destination, since in this case we
|
// - contains an internal destination, since in this case we
|
||||||
|
Loading…
x
Reference in New Issue
Block a user