From 9f651da5730d6fc1a59cf2210eaa8df9def8b123 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 17 May 2017 04:54:40 +0100 Subject: [PATCH] Repeat and Yoyo combo work. --- v3/src/checksum.js | 2 +- v3/src/tween/Tween.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/v3/src/checksum.js b/v3/src/checksum.js index 5da0471bb..c73098568 100644 --- a/v3/src/checksum.js +++ b/v3/src/checksum.js @@ -1,4 +1,4 @@ var CHECKSUM = { -build: 'f8ca0120-3ab1-11e7-be5c-338bdccc3159' +build: '673b3ff0-3ab4-11e7-a771-cbff81527fed' }; module.exports = CHECKSUM; \ No newline at end of file diff --git a/v3/src/tween/Tween.js b/v3/src/tween/Tween.js index 126c10e28..869cb1fa6 100644 --- a/v3/src/tween/Tween.js +++ b/v3/src/tween/Tween.js @@ -109,6 +109,7 @@ Tween.prototype = { if (this.countdown <= 0) { + // Refactor this, so we can use countdown for repeatDelay and onCompleteDelay as well this.loadValues(); } } @@ -128,6 +129,7 @@ Tween.prototype = { return (this.state !== 5); }, + // Merge with Backwards and include in update? forward: function (delta) { var elapsed = this.elapsed; @@ -185,7 +187,7 @@ Tween.prototype = { this.elapsed = elapsed; this.progress = progress; - if (progress === 0) + if (progress === 1) { // Tween has reached start // Do we yoyo or repeat?