mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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
1 changed files with 2 additions and 2 deletions
|
@ -329,8 +329,8 @@ class PDFHistory {
|
|||
}
|
||||
|
||||
let forceReplace = false;
|
||||
if (this._destination.page === position.first ||
|
||||
this._destination.page === position.page) {
|
||||
if (this._destination.page >= position.first &&
|
||||
this._destination.page <= position.page) {
|
||||
// When the `page` of `this._destination` is still visible, do not
|
||||
// update the browsing history when `this._destination` either:
|
||||
// - contains an internal destination, since in this case we
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue