mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1122435 - Part 2: Stop auto-refreshing AnimationPlayerActor's state when the animation has ended. r=miker
This commit is contained in:
parent
2408a0aabb
commit
b12a938674
@ -339,6 +339,11 @@ let AnimationPlayerFront = FrontClass(AnimationPlayerActor, {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the animationplayer is now finished, stop auto-refreshing.
|
||||
if (data.playState === "finished") {
|
||||
this.stopAutoRefresh();
|
||||
}
|
||||
|
||||
if (this.currentStateHasChanged) {
|
||||
this.state = data;
|
||||
this.emit(this.AUTO_REFRESH_EVENT, this.state);
|
||||
|
Loading…
Reference in New Issue
Block a user