In this PR within p5.dance.js I removed a call to reset in the onEnded callback for playSound. This is a redundant call to reset and caused an issue when preview is enabled - sometimes, the preview did NOT show up when the 'reset' button is clicked because the playSoundonEnded callback which included the reset call would be executed AFTER the preview was drawn.
This PR pairs with https://github.com/code-dot-org/code-dot-org/pull/53817 which adds the ability to configure a preview for the 'setup' blocks on Dance Party levels.
In this PR within
p5.dance.js
I removed a call toreset
in theonEnded
callback forplaySound
. This is a redundant call toreset
and caused an issue when preview is enabled - sometimes, the preview did NOT show up when the 'reset' button is clicked because theplaySound
onEnded
callback which included thereset
call would be executed AFTER the preview was drawn.