Merge pull request #8273 from Snuffleupagus/issue-8272
Correctly detect if `requestAnimationFrame` is supported in `compatibility.js` (issue 8272)
This commit is contained in:
commit
7052316f58
@ -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 (window.requestAnimationFrame) {
|
||||||
if (!('requestAnimationFrame' in window)) {
|
return;
|
||||||
installFakeAnimationFrameFunctions();
|
|
||||||
}
|
}
|
||||||
|
installFakeAnimationFrameFunctions();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Support: Android, iOS
|
// Support: Android, iOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user