diff --git a/index.html b/index.html index 5f08161..17f4aea 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,12 @@ 0:00.0 / 0:00.0 +
diff --git a/js/app.js b/js/app.js index 0943fce..2960e9f 100644 --- a/js/app.js +++ b/js/app.js @@ -616,7 +616,9 @@ const App = { ctx.stroke(); if (this.holdPeaks) { - const decay = 0.015; + const decaySel = document.getElementById('peakHoldDecay'); + const decayMap = { off: 0, slow: 0.005, medium: 0.015, fast: 0.03 }; + const decay = decaySel ? (decayMap[decaySel.value] ?? 0.015) : 0.015; ctx.beginPath(); let started = false; for (let x = 0; x < chartW; x++) {