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.
9 lines
302 B
9 lines
302 B
1 month ago
|
import './browser.mjs';
|
||
|
import { isClient } from '@vueuse/core';
|
||
|
|
||
|
const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
|
||
|
const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
|
||
|
|
||
|
export { cAF, rAF };
|
||
|
//# sourceMappingURL=raf.mjs.map
|