diff --git a/src/utils.ts b/src/utils.ts index 3e2979583..bd612d965 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -148,7 +148,7 @@ export const throttleRAF = ( scheduleFunc(lastArgs); } if (watchdog) { - clearTimout(watchdog); + clearTimeout(watchdog); } }); }; @@ -170,7 +170,7 @@ export const throttleRAF = ( cancelAnimationFrame(timerId); timerId = null; if (watchdog) { - clearTimout(watchdog); + clearTimeout(watchdog); } } if (lastArgs) { @@ -184,7 +184,7 @@ export const throttleRAF = ( cancelAnimationFrame(timerId); timerId = null; if (watchdog) { - clearTimout(watchdog); + clearTimeout(watchdog); watchdog = null; } }