requestAnimationFrame.js 467 B

12345678910
  1. import env from '../core/env.js';
  2. var requestAnimationFrame;
  3. requestAnimationFrame = (env.hasGlobalWindow
  4. && ((window.requestAnimationFrame && window.requestAnimationFrame.bind(window))
  5. || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window))
  6. || window.mozRequestAnimationFrame
  7. || window.webkitRequestAnimationFrame)) || function (func) {
  8. return setTimeout(func, 16);
  9. };
  10. export default requestAnimationFrame;