Reverts mozRequestAnimationFrame to compatibility.js
This commit is contained in:
parent
ff0672e0fa
commit
34089212e0
@ -496,7 +496,9 @@ if (typeof PDFJS === 'undefined') {
|
||||
if ('requestAnimationFrame' in window) {
|
||||
return;
|
||||
}
|
||||
window.requestAnimationFrame = window.webkitRequestAnimationFrame ||
|
||||
window.requestAnimationFrame =
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
(function fakeRequestAnimationFrame(callback) {
|
||||
window.setTimeout(callback, 20);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user