mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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
1 changed files with 5 additions and 5 deletions
|
@ -663,12 +663,12 @@ PDFJS.compatibilityChecked = true;
|
|||
if ('requestAnimationFrame' in window) {
|
||||
return;
|
||||
}
|
||||
window.requestAnimationFrame =
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame;
|
||||
if (!('requestAnimationFrame' in window)) {
|
||||
installFakeAnimationFrameFunctions();
|
||||
window.requestAnimationFrame = window.mozRequestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame;
|
||||
if (window.requestAnimationFrame) {
|
||||
return;
|
||||
}
|
||||
installFakeAnimationFrameFunctions();
|
||||
})();
|
||||
|
||||
// Support: Android, iOS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue