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:
Tim van der Meij 2018-12-07 23:18:00 +01:00 committed by GitHub
commit 5b8c51c1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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