request-animation-frame.js 529 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function requestAnimationFrame(fn) {
  4. var method = window.requestAnimationFrame ||
  5. window.webkitRequestAnimationFrame ||
  6. // @ts-ignore
  7. window.mozRequestAnimationFrame ||
  8. // @ts-ignore
  9. window.msRequestAnimationFrame ||
  10. function (f) {
  11. return setTimeout(f, 16);
  12. };
  13. return method(fn);
  14. }
  15. exports.default = requestAnimationFrame;
  16. ;
  17. //# sourceMappingURL=request-animation-frame.js.map