mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Reverts mozRequestAnimationFrame to compatibility.js
This commit is contained in:
parent
ff0672e0fa
commit
34089212e0
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue