|
|
@ -496,7 +496,9 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
if ('requestAnimationFrame' in window) { |
|
|
|
if ('requestAnimationFrame' in window) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
window.requestAnimationFrame = window.webkitRequestAnimationFrame || |
|
|
|
window.requestAnimationFrame = |
|
|
|
|
|
|
|
window.mozRequestAnimationFrame || |
|
|
|
|
|
|
|
window.webkitRequestAnimationFrame || |
|
|
|
(function fakeRequestAnimationFrame(callback) { |
|
|
|
(function fakeRequestAnimationFrame(callback) { |
|
|
|
window.setTimeout(callback, 20); |
|
|
|
window.setTimeout(callback, 20); |
|
|
|
}); |
|
|
|
}); |
|
|
|