Skip to content

Fix for clear paused animation#114

Merged
rogueSkib merged 1 commit intomasterfrom
Fix-on-pause-clear-behavior
Jan 31, 2017
Merged

Fix for clear paused animation#114
rogueSkib merged 1 commit intomasterfrom
Fix-on-pause-clear-behavior

Conversation

@AlexTiTanium
Copy link
Contributor

If you try call animate(...).clear() on paused animation, next call animate(...).pause() won't work.
This happens because clear() doesn't reset paused state for the object.

}
queue.length = 0;
this._elapsed = 0;
this._isPaused = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I wonder if we should update the native core as well.
https://github.com/gameclosure/native-core/blob/9ed8d903d92ffa6e52af32e18540bbee8defed08/timestep/timestep_animate.cpp#L138

That appears to be the equivalent function and it also isn't clearing the paused flag. But I know very little about that code base.

@AlexTiTanium
Copy link
Contributor Author

@Snailprincess I made PR for native core, could you please check: play-co/native-core#15

@rogueSkib
Copy link
Contributor

@AlexTiTanium this looks good, I'm going to merge now

@rogueSkib rogueSkib merged commit ca5ab3a into master Jan 31, 2017
@rogueSkib rogueSkib deleted the Fix-on-pause-clear-behavior branch January 31, 2017 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants