From 09a05a4a1c0c6e8066f7e008d6375b49c9dde7f9 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Tue, 4 Apr 2023 13:20:11 +0200 Subject: [PATCH] Update utils.ts --- src/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }