Skip to content

Commit

Permalink
workaround for sounds stopping after "play again"
Browse files Browse the repository at this point in the history
  • Loading branch information
edward3h committed Jan 31, 2024
1 parent 16f772e commit 94aee96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend2/src/lib/SoundControl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
break;
}
}
if (latestEvent && latestEvent.index == 0 && lastIndex > 0) {
// workaround for "play again"
lastIndex = 0;
}
}
afterUpdate(checkPlaySound);
Expand Down

0 comments on commit 94aee96

Please sign in to comment.