Skip to content

Commit 27fddd5

Browse files
committed
fix (Tween): non reliable percentage value in onStart function in reversed tweens
1 parent f721cc2 commit 27fddd5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

build/OneLoop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2022 OneLoop.js
44
* Author: Nicolas Langle
55
* Repository: https://github.com/n-langle/OneLoop.js
6-
* Version: 5.1.3
6+
* Version: 5.1.4
77
* SPDX-License-Identifier: MIT
88
*
99
* Credit for easing functions goes to : https://github.com/ai/easings.net/blob/master/src/easings/easingsFunctions.ts
@@ -335,6 +335,7 @@ class Tween extends MainLoopEntry {
335335
complete(timestamp, tick) {
336336
const lastValue = (this._direction + 1) % 2;
337337

338+
this._executed = lastValue;
338339
this._pauseTime = null;
339340

340341
this.onUpdate(timestamp, tick, lastValue);

0 commit comments

Comments
 (0)