diff --git a/.beads/dolt-monitor.pid.lock b/.beads/dolt-monitor.pid.lock deleted file mode 100644 index e69de29..0000000 diff --git a/playground/js/b-app.js b/playground/js/b-app.js index ef937fd..665ada2 100644 --- a/playground/js/b-app.js +++ b/playground/js/b-app.js @@ -906,6 +906,16 @@ function setOutputMode(mode) { document.getElementById('toggle-visual').classList.toggle('active', mode === 'visual'); document.getElementById('toggle-synth').classList.toggle('active', mode === 'synth'); + // Resize the now-visible canvas so it picks up correct dimensions + if (mode === 'visual') { + requestAnimationFrame(() => { + visualizer.resize(); + visualizer.initParticles(); + }); + } else if (synthVisualizer) { + requestAnimationFrame(() => synthVisualizer._resize()); + } + buildParamGroups(); const outputs = iml.getOutputs(); updateAllParamBars(outputs);