mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Emit the current and previous values
This commit is contained in:
parent
1a69cd9e0f
commit
e861ecf5a0
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue