Skip to content

Commit

Permalink
perf: prevent create penner all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Feb 1, 2025
1 parent a61b0b6 commit 3edf3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anime/lib/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default (anime: Anime) => {
anime.isPlay = false;
} else {
if (current >= start) {
const elapsed = penner()[anime.easing]()(
const elapsed = pennerFn[anime.easing]()(
(current - start) / anime.duration
);
isValid && changeAll(elapsed, current);
Expand Down

0 comments on commit 3edf3a5

Please sign in to comment.