Browse Source

PDF.js version 1.1.230

master v1.1.230
Pdf Bot 10 years ago
parent
commit
f58c78b837
  1. 2
      bower.json
  2. 4
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 10
      web/pdf_viewer.js

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.1.228",
"version": "1.1.230",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

4
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.228';
PDFJS.build = '1b370da';
PDFJS.version = '1.1.230';
PDFJS.build = '1da0b3a';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.228';
PDFJS.build = '1b370da';
PDFJS.version = '1.1.230';
PDFJS.build = '1da0b3a';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.228';
PDFJS.build = '1b370da';
PDFJS.version = '1.1.230';
PDFJS.build = '1da0b3a';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.1.228",
"version": "1.1.230",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

10
web/pdf_viewer.js

@ -2067,6 +2067,12 @@ var PDFViewer = (function pdfViewer() { @@ -2067,6 +2067,12 @@ var PDFViewer = (function pdfViewer() {
this._currentPageNumber = val;
event.pageNumber = val;
this.container.dispatchEvent(event);
// Check if the caller is `PDFViewer_update`, to avoid breaking scrolling.
if (this.updateInProgress) {
return;
}
this.scrollPageIntoView(val);
},
/**
@ -2496,7 +2502,7 @@ var PDFViewer = (function pdfViewer() { @@ -2496,7 +2502,7 @@ var PDFViewer = (function pdfViewer() {
};
},
update: function () {
update: function PDFViewer_update() {
var visible = this._getVisiblePages();
var visiblePages = visible.views;
if (visiblePages.length === 0) {
@ -2511,7 +2517,7 @@ var PDFViewer = (function pdfViewer() { @@ -2511,7 +2517,7 @@ var PDFViewer = (function pdfViewer() {
this.renderingQueue.renderHighestPriority(visible);
var currentId = this.currentPageNumber;
var currentId = this._currentPageNumber;
var firstPage = visible.first;
for (var i = 0, ii = visiblePages.length, stillFullyVisible = false;

Loading…
Cancel
Save