2
0
Pdf Bot 9 жил өмнө
parent
commit
10d5f3c64d

+ 1 - 1
bower.json

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

+ 2 - 2
build/pdf.combined.js

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

+ 2 - 2
build/pdf.js

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

+ 2 - 2
build/pdf.worker.js

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

+ 1 - 1
package.json

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

+ 9 - 1
web/pdf_viewer.js

@@ -2150,6 +2150,10 @@ var PDFViewer = (function pdfViewer() {
       }
       }
 
 
       this._setScale(this._currentScaleValue, true);
       this._setScale(this._currentScaleValue, true);
+
+      if (this.defaultRenderingQueue) {
+        this.update();
+      }
     },
     },
 
 
     /**
     /**
@@ -2287,7 +2291,7 @@ var PDFViewer = (function pdfViewer() {
       }
       }
     },
     },
 
 
-    _scrollUpdate: function () {
+    _scrollUpdate: function PDFViewer_scrollUpdate() {
       if (this.pagesCount === 0) {
       if (this.pagesCount === 0) {
         return;
         return;
       }
       }
@@ -2336,6 +2340,10 @@ var PDFViewer = (function pdfViewer() {
       }
       }
 
 
       this._setScaleDispatchEvent(newScale, newValue, preset);
       this._setScaleDispatchEvent(newScale, newValue, preset);
+
+      if (this.defaultRenderingQueue) {
+        this.update();
+      }
     },
     },
 
 
     _setScale: function pdfViewer_setScale(value, noScroll) {
     _setScale: function pdfViewer_setScale(value, noScroll) {