2
0
Yury Delendik 10 жил өмнө
parent
commit
755978a985

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.387",
+  "version": "1.0.389",
   "keywords": [
     "Mozilla",
     "pdf",

+ 2 - 2
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.387';
-PDFJS.build = 'b160e85';
+PDFJS.version = '1.0.389';
+PDFJS.build = 'bab40ca';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.387';
-PDFJS.build = 'b160e85';
+PDFJS.version = '1.0.389';
+PDFJS.build = 'bab40ca';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 2 - 2
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.387';
-PDFJS.build = 'b160e85';
+PDFJS.version = '1.0.389';
+PDFJS.build = 'bab40ca';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 1 - 1
package.json

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

+ 12 - 4
web/compatibility.js

@@ -495,17 +495,25 @@ if (typeof PDFJS === 'undefined') {
   }
 })();
 
-// Support: IE<10, Android<4.0, iOS<5.0
+// Support: IE<10, Android<4.0, iOS
 (function checkRequestAnimationFrame() {
+  function fakeRequestAnimationFrame(callback) {
+    window.setTimeout(callback, 20);
+  }
+
+  var isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
+  if (isIOS) {
+    // requestAnimationFrame on iOS is broken, replacing with fake one.
+    window.requestAnimationFrame = fakeRequestAnimationFrame;
+    return;
+  }
   if ('requestAnimationFrame' in window) {
     return;
   }
   window.requestAnimationFrame =
     window.mozRequestAnimationFrame ||
     window.webkitRequestAnimationFrame ||
-    (function fakeRequestAnimationFrame(callback) {
-      window.setTimeout(callback, 20);
-    });
+    fakeRequestAnimationFrame;
 })();
 
 (function checkCanvasSizeLimitation() {