Skip to content

Commit 7aeafd9

Browse files
committed
Merge branch 'child-context-style' of github.com:react-component/tween-one into child-context-style
2 parents 3ccc89b + 82a7067 commit 7aeafd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Tween.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ p.render = function () {
311311
};
312312
const maxPer = this.perFrame - this.accuracy;
313313
const startTime = item.delay && reverse ? -maxPer : 0;
314-
if (progressTime >= startTime &&
315-
!(progressTime > duration && item.mode === 'onComplete') &&
314+
if ((progressTime >= startTime &&
315+
!(progressTime > duration && item.mode === 'onComplete')
316+
|| (progressTime < startTime && item.mode && item.mode !== 'onStart')
317+
) &&
316318
this.start[i]) {
317319
const updateAnim = this.updateAnim === 'update';
318320
progressTime = (progressTime < maxPer) && !reverse

0 commit comments

Comments
 (0)