Skip to content

Commit

Permalink
fix: the nextTick callback of ticker should pass in the dt parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Jan 4, 2022
1 parent 1d78585 commit db267cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/Ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ const Ticker = Class.create(/** @lends Ticker.prototype */ {
nextTick(callback) {
const that = this;
const tickObj = {
tick() {
tick(dt) {
that.removeTick(tickObj);
callback();
callback(dt);
},
};

Expand Down

0 comments on commit db267cb

Please sign in to comment.