Commit b09500ae authored by marioromera's avatar marioromera
Browse files

try triggering event

parent ad05c8f7
......@@ -78,11 +78,16 @@ export default function Drawing(svgId) {
const letterCoords = myTurnPathsData.map((point) =>
point.map((p) => ({ x: p[0], y: p[1] }))
);
let yourTurnAudio;
if (myTurn) {
// AUDIO
soundManager.play('yourTurn', { loops: 3 });
var e = new Event('touchstart');
document.body.dispatchEvent(e);
e.preventDefault();
yourTurnAudio = soundManager.createSound({
url: './yourTurn.mp3',
});
yourTurnAudio.play({ loops: 3 });
letterCoords.forEach((letter) => {
const bg = this.myTurnG
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment