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