From 4255ff243cefddaf2e6db8200a4b7e864874c6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Mon, 6 Nov 2023 18:45:52 +0800 Subject: [PATCH] fix: raf canel logic --- src/raf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raf.ts b/src/raf.ts index c2444aad..0e5f7d49 100644 --- a/src/raf.ts +++ b/src/raf.ts @@ -44,7 +44,7 @@ const wrapperRaf = (callback: () => void, times = 1): number => { wrapperRaf.cancel = (id: number) => { const realId = rafIds.get(id); - cleanup(realId); + cleanup(id); return caf(realId); };