diff --git a/web/app.js b/web/app.js index bf2226b87..0dd5f1f54 100644 --- a/web/app.js +++ b/web/app.js @@ -1525,10 +1525,6 @@ function webViewerInitialized() { if ('verbosity' in hashParams) { PDFJS.verbosity = hashParams['verbosity'] | 0; } - if ('ignorecurrentpositiononzoom' in hashParams) { - PDFJS.ignoreCurrentPositionOnZoom = - (hashParams['ignorecurrentpositiononzoom'] === 'true'); - } if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('PRODUCTION')) { if ('disablebcmaps' in hashParams && hashParams['disablebcmaps']) { PDFJS.cMapUrl = '../external/cmaps/'; diff --git a/web/base_viewer.js b/web/base_viewer.js index bc953977e..521b193a7 100644 --- a/web/base_viewer.js +++ b/web/base_viewer.js @@ -505,7 +505,7 @@ class BaseViewer { if (!noScroll) { let page = this._currentPageNumber, dest; - if (this._location && !PDFJS.ignoreCurrentPositionOnZoom && + if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) { page = this._location.pageNumber; dest = [null, { name: 'XYZ', }, this._location.left, diff --git a/web/ui_utils.js b/web/ui_utils.js index dc762dfeb..455309b50 100644 --- a/web/ui_utils.js +++ b/web/ui_utils.js @@ -102,12 +102,6 @@ PDFJS.disableHistory = (PDFJS.disableHistory === undefined ? PDFJS.disableTextLayer = (PDFJS.disableTextLayer === undefined ? false : PDFJS.disableTextLayer); -/** - * Disables maintaining the current position in the document when zooming. - */ -PDFJS.ignoreCurrentPositionOnZoom = (PDFJS.ignoreCurrentPositionOnZoom === - undefined ? false : PDFJS.ignoreCurrentPositionOnZoom); - if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('FIREFOX || MOZCENTRAL')) { /**