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); };