You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
304 B

11 months ago
import { isClient } from '@vueuse/core';
let rAF = (fn) => setTimeout(fn, 16);
let cAF = (handle) => clearTimeout(handle);
if (isClient) {
rAF = (fn) => window.requestAnimationFrame(fn);
cAF = (handle) => window.cancelAnimationFrame(handle);
}
export { cAF, rAF };
//# sourceMappingURL=raf.mjs.map