diff --git a/bower.json b/bower.json index b00715c8b..6b4ac35cd 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.387", + "version": "1.0.389", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 1f87cc299..c61950fd7 100644 --- a/build/pdf.combined.js +++ b/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 diff --git a/build/pdf.js b/build/pdf.js index 01790a641..ede52f019 100644 --- a/build/pdf.js +++ b/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 diff --git a/build/pdf.worker.js b/build/pdf.worker.js index ff732dbf6..7f139a318 100644 --- a/build/pdf.worker.js +++ b/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 diff --git a/package.json b/package.json index 1b9c87a2b..d381e61b4 100644 --- a/package.json +++ b/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", diff --git a/web/compatibility.js b/web/compatibility.js index b603971e3..400a940eb 100644 --- a/web/compatibility.js +++ b/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() {