Correctly detect if requestAnimationFrame
is supported in compatibility.js
(issue 8272)
This is a regression from PR 8222. Fixes 8272.
This commit is contained in:
parent
10e5f766a2
commit
3a302fdb53
@ -663,12 +663,12 @@ PDFJS.compatibilityChecked = true;
|
|||||||
if ('requestAnimationFrame' in window) {
|
if ('requestAnimationFrame' in window) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.requestAnimationFrame =
|
window.requestAnimationFrame = window.mozRequestAnimationFrame ||
|
||||||
window.mozRequestAnimationFrame ||
|
|
||||||
window.webkitRequestAnimationFrame;
|
window.webkitRequestAnimationFrame;
|
||||||
if (!('requestAnimationFrame' in window)) {
|
if (window.requestAnimationFrame) {
|
||||||
installFakeAnimationFrameFunctions();
|
return;
|
||||||
}
|
}
|
||||||
|
installFakeAnimationFrameFunctions();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Support: Android, iOS
|
// Support: Android, iOS
|
||||||
|
Loading…
Reference in New Issue
Block a user