1 | export default function requestAnimationFrame(fn) {
|
2 | var method = window.requestAnimationFrame ||
|
3 | window.webkitRequestAnimationFrame ||
|
4 | // @ts-ignore
|
5 | window.mozRequestAnimationFrame ||
|
6 | // @ts-ignore
|
7 | window.msRequestAnimationFrame ||
|
8 | function (f) {
|
9 | return setTimeout(f, 16);
|
10 | };
|
11 | return method(fn);
|
12 | }
|
13 | ;
|
14 | //# sourceMappingURL=request-animation-frame.js.map |
\ | No newline at end of file |