Getting startAt

Getting startAt config and using for current
This commit is contained in:
Diego Teixeira 2018-11-19 16:14:48 -02:00 committed by GitHub
parent f45ee83fc4
commit 1db9e15a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
var from = GetValue(config, 'from', 0);
var to = GetValue(config, 'to', 1);
var current = GetValue(config, 'startAt', from);
var targets = [ { value: from } ];
@ -78,7 +79,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
);
tweenData.start = from;
tweenData.current = from;
tweenData.current = current;
tweenData.to = to;
data.push(tweenData);