@vue-widget/hooks
Version:
hooks from react to vue
8 lines (7 loc) • 343 B
JavaScript
var w = window;
export var requestAnimationFrame = (w === null || w === void 0 ? void 0 : w.requestAnimationFrame) ||
(w === null || w === void 0 ? void 0 : w.webkitRequestAnimationFrame) ||
(w === null || w === void 0 ? void 0 : w.mozRequestAnimationFrame) ||
function (callback) {
setTimeout(callback, 1000 / 60);
};