diff --git a/bower.json b/bower.json index 896d2187a..019c559a2 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.130", + "version": "1.1.132", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index fdffbb395..61ad1bf50 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.130'; -PDFJS.build = '67816bd'; +PDFJS.version = '1.1.132'; +PDFJS.build = '39d5031'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index a113bd47a..681b5fd8a 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.130'; -PDFJS.build = '67816bd'; +PDFJS.version = '1.1.132'; +PDFJS.build = '39d5031'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 33785ff38..035f884e2 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.130'; -PDFJS.build = '67816bd'; +PDFJS.version = '1.1.132'; +PDFJS.build = '39d5031'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 5834e37d0..94360a659 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.130", + "version": "1.1.132", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index 329521ed2..e4434ec9a 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -1949,7 +1949,7 @@ var PDFViewer = (function pdfViewer() { this._currentScale = UNKNOWN_SCALE; this._currentScaleValue = null; this._buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE); - this.location = null; + this._location = null; this._pagesRotation = 0; this._pagesRequests = []; @@ -1997,11 +1997,11 @@ var PDFViewer = (function pdfViewer() { if (!noScroll) { var page = this._currentPageNumber, dest; - if (this.location && !IGNORE_CURRENT_POSITION_ON_ZOOM && + if (this._location && !IGNORE_CURRENT_POSITION_ON_ZOOM && !(this.isInPresentationMode || this.isChangingPresentationMode)) { - page = this.location.pageNumber; - dest = [null, { name: 'XYZ' }, this.location.left, - this.location.top, null]; + page = this._location.pageNumber; + dest = [null, { name: 'XYZ' }, this._location.left, + this._location.top, null]; } this.scrollPageIntoView(page, dest); } @@ -2180,7 +2180,7 @@ var PDFViewer = (function pdfViewer() { var intTop = Math.round(topLeft[1]); pdfOpenParams += ',' + intLeft + ',' + intTop; - this.location = { + this._location = { pageNumber: pageNumber, scale: normalizedScaleValue, top: intTop, @@ -2234,6 +2234,7 @@ var PDFViewer = (function pdfViewer() { var event = document.createEvent('UIEvents'); event.initUIEvent('updateviewarea', true, true, window, 0); + event.location = this._location; this.container.dispatchEvent(event); },