Skip to content

Commit

Permalink
fix: raf canel logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 6, 2023
1 parent e383540 commit 4255ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 4255ff2

Please sign in to comment.