mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update utils.ts
This commit is contained in:
parent
c4738b31fb
commit
09a05a4a1c
1 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ export const throttleRAF = <T extends any[]>(
|
|||
scheduleFunc(lastArgs);
|
||||
}
|
||||
if (watchdog) {
|
||||
clearTimout(watchdog);
|
||||
clearTimeout(watchdog);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -170,7 +170,7 @@ export const throttleRAF = <T extends any[]>(
|
|||
cancelAnimationFrame(timerId);
|
||||
timerId = null;
|
||||
if (watchdog) {
|
||||
clearTimout(watchdog);
|
||||
clearTimeout(watchdog);
|
||||
}
|
||||
}
|
||||
if (lastArgs) {
|
||||
|
@ -184,7 +184,7 @@ export const throttleRAF = <T extends any[]>(
|
|||
cancelAnimationFrame(timerId);
|
||||
timerId = null;
|
||||
if (watchdog) {
|
||||
clearTimout(watchdog);
|
||||
clearTimeout(watchdog);
|
||||
watchdog = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue