Skip to content

Commit e5fbcd5

Browse files
committed
Calling Tween.play on a tween created via TweenManager.create wouldn't actually start playback until the tween was first added to the Tween Manager. Now, calling play will have it automatically add itself to the Tween Manager if it's not already in there. Fix phaserjs#3763
1 parent e140640 commit e5fbcd5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@
88

99
* DataManager.removeValue (and by extension the `remove` method too) will not emit the parent of the DataManager as the 2nd argument in the `removedata` event, to keep it consistent with the set events (thanks @rexrainbow)
1010
* The docs for the Loader `filecomplete` event said that you could listen for a specific file using its type and key, i.e.: `filecomplete-image-monster`, however, the code used an underscore instead of a hyphen. We feel the hyphen looks cleaner, so the Loader code has been updated, meaning you can now use the hyphen version of the event properly (thanks @NokFrt)
11+
* If a Game Object is already being dragged, it cannot be dragged by another pointer (in multi-touch mode) until the original pointer has released it (thanks @rexrainbow)
12+
* Calling `Tween.play` on a tween created via `TweenManager.create` wouldn't actually start playback until the tween was first added to the Tween Manager. Now, calling `play` will have it automatically add itself to the Tween Manager if it's not already in there. Fix #3763 (thanks @pantoninho)
1113

1214
### Bug Fixes
1315

1416
* The DataManager `changedata` event was emitting the original value of the data instead of new value (thanks @iamchristopher)
1517
* The LoaderPlugin didn't emit the `filecomplete` event if any of files failed to load, causing it to fail to run the Scene `create` function as well. Fix #3750 (thanks @NokFrt)
1618

19+
### Examples, Documentation and TypeScript
20+
21+
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
22+
23+
@DannyT @squilibob
1724

25+
Also, a special mention to @andygroff for his excellent work enhancing the search box on the examples site.
1826

1927

2028
## Version 3.10.1 - Hayashi - 13th June 2018

src/tweens/tween/Tween.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,8 @@ var Tween = new Class({
674674

675675
onStart.func.apply(onStart.scope, onStart.params);
676676
}
677+
678+
this.parent.makeActive(this);
677679
}
678680
},
679681

0 commit comments

Comments
 (0)