From 5ff4922646b8216a6947ecfe0e2fdd1e8293104d Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Sun, 19 Jul 2020 13:11:58 -0700 Subject: [PATCH] correcting example --- examples/shiny.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/shiny.html b/examples/shiny.html index 70d6ac8b..ee87a82c 100644 --- a/examples/shiny.html +++ b/examples/shiny.html @@ -246,9 +246,9 @@ }); // @ts-ignore - document.querySelector("tone-slider-pad").addEventListener("move", e => move(parseFloat(e.target.value))); + document.querySelector("tone-slider-pad").addEventListener("move", e => move(e.detail)); // @ts-ignore - document.querySelector("tone-slider-pad").addEventListener("down", e => triggerAttack(parseFloat(e.target.value))); + document.querySelector("tone-slider-pad").addEventListener("down", e => triggerAttack(e.detail)); document.querySelector("tone-slider-pad").addEventListener("up", () => synth.triggerRelease()); document.querySelector("tone-play-toggle").addEventListener("start", () => Tone.Transport.start());