raf.mjs 278 B

1234567
  1. import { isClient } from '@vueuse/core';
  2. const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
  3. const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
  4. export { cAF, rAF };
  5. //# sourceMappingURL=raf.mjs.map