Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

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
@Rich-Harris
Copy link
Member

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants