Skip to content

Commit

Permalink
fix: correct time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Oct 9, 2024
1 parent ec8b850 commit a8f12de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function throttle<T extends unknown[]>(func: (...args: T) => void, delay:
else {
timer = setTimeout(() => {
func.apply(this, args);
start = performance.now();
start = performance.now() / 1000;
timer = void 0;
}, delay + start - now);
}
Expand Down

0 comments on commit a8f12de

Please sign in to comment.