1 | ;
|
2 | exports.__esModule = 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 |
\ | No newline at end of file |