Skip to content

Commit

Permalink
fix (Tween): non reliable percentage value in onStart function in rev…
Browse files Browse the repository at this point in the history
…ersed tweens
  • Loading branch information
n-langle committed Nov 5, 2024
1 parent f721cc2 commit 27fddd5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build/OneLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2022 OneLoop.js
* Author: Nicolas Langle
* Repository: https://github.com/n-langle/OneLoop.js
* Version: 5.1.3
* Version: 5.1.4
* SPDX-License-Identifier: MIT
*
* Credit for easing functions goes to : https://github.com/ai/easings.net/blob/master/src/easings/easingsFunctions.ts
Expand Down Expand Up @@ -335,6 +335,7 @@ class Tween extends MainLoopEntry {
complete(timestamp, tick) {
const lastValue = (this._direction + 1) % 2;

this._executed = lastValue;
this._pauseTime = null;

this.onUpdate(timestamp, tick, lastValue);
Expand Down
Loading

0 comments on commit 27fddd5

Please sign in to comment.