Emit the current and previous values

This commit is contained in:
Richard Davey 2020-01-07 23:57:08 +00:00
parent 1a69cd9e0f
commit e861ecf5a0

View file

@ -1240,7 +1240,7 @@ var Tween = new Class({
{
if (!this.isSeeking)
{
this.emit(event, this, tweenData.key, tweenData.target);
this.emit(event, this, tweenData.key, tweenData.target, tweenData.current, tweenData.previous);
if (callback)
{
@ -1465,6 +1465,7 @@ var Tween = new Class({
tweenData.elapsed = elapsed;
tweenData.progress = progress;
tweenData.previous = tweenData.current;
if (progress === 1)
{