feat(packages/excalidraw): export throttleRAF (#10912)

This commit is contained in:
David Luzar
2026-03-07 12:05:33 +01:00
committed by GitHub
parent 3d8c12fba4
commit fa1f7d9f22
6 changed files with 123 additions and 5 deletions
-4
View File
@@ -169,10 +169,6 @@ export const throttleRAF = <T extends any[]>(fn: (...args: T) => void) => {
};
const ret = (...args: T) => {
if (isTestEnv()) {
fn(...args);
return;
}
lastArgs = args;
if (timerId === null) {
scheduleFunc();