hackclub/sprig

When resetting a game on mobile, audio doesn't reset

Closed this issue · 0 comments

Describe the bug
When playing a game in the browser of a phone, hitting the reset butting does not cause the audio to reset, so every time its clicked the audio keeps getting layered

To Reproduce
Steps to reproduce the behavior:
1.Go to a game with background music
2. Click on the reset button

Expected behavior
The audio should stop and then be played again

Actual behavior
The audio doesn't stop, but is also played again, making it "stack"