New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio pause trigger onStop function #868
Comments
…values are set before the onPause signal is dispatched (thanks @AnderbergE, fix #868)
Agreed, this should sort it. |
This fix creates another problem: |
There, that should sort it now. It was resetting isPlayed too early. But on further inspection pause doesn't need to set it at all, as it's set in stop. |
Works for me 👍 |
When you use Phaser.Sound.pause() the onStop functions trigger. After that the onPause triggers as well.
This might be by design, but for me it feels like a strange behaviour. I suggest only running the onPause functions when you pause. If that makes the implementation complicated, perhaps the "paused" property can be set to true before the onStop is called, making it possible to distinguish between a call to pause or stop.
The text was updated successfully, but these errors were encountered: