UNPKG

496 BJavaScriptView Raw
1"use strict";
2exports.__esModule = true;
3function 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}
15exports["default"] = requestAnimationFrame;
16;
17//# sourceMappingURL=request-animation-frame.js.map
\No newline at end of file