Skip to content
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

fix: restart audio playback on repeated button pushes #504

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

elias-pap
Copy link
Contributor

@elias-pap elias-pap commented Sep 16, 2023

When the button is clicked for a second time before the audio playback triggered by the first click is finished, the second click is ignored. Restarting the playback on every click makes the button feel more responsive.
Useful e.g. when the button is clicked very fast, many times in a row.

@vercel
Copy link

vercel bot commented Sep 16, 2023

@elias-pap is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@Rich-Harris Rich-Harris merged commit ab57f4e into sveltejs:main Dec 15, 2023
1 check failed
@Rich-Harris
Copy link
Member

thanks!

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.

2 participants