Browse Source

Merge pull request #8273 from Snuffleupagus/issue-8272

Correctly detect if `requestAnimationFrame` is supported in `compatibility.js` (issue 8272)
Yury Delendik 8 years ago committed by GitHub
parent
commit
7052316f58
  1. 8
      src/shared/compatibility.js

8
src/shared/compatibility.js

@ -663,12 +663,12 @@ PDFJS.compatibilityChecked = true; @@ -663,12 +663,12 @@ PDFJS.compatibilityChecked = true;
if ('requestAnimationFrame' in window) {
return;
}
window.requestAnimationFrame =
window.mozRequestAnimationFrame ||
window.requestAnimationFrame = window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame;
if (!('requestAnimationFrame' in window)) {
installFakeAnimationFrameFunctions();
if (window.requestAnimationFrame) {
return;
}
installFakeAnimationFrameFunctions();
})();
// Support: Android, iOS

Loading…
Cancel
Save