diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-18 21:47:27 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-18 21:47:27 +0100 |
| commit | 8f069fc08a123b1544c2a978586046e1ebb2173a (patch) | |
| tree | d05b59ac439b3d93b3ed23df0110ddf29d39a4a7 /workspaces/test/test_assets/test_asset_1.txt | |
| parent | f48397c58248ca338c258b1de762314926fe681f (diff) | |
fix(mq_editor): destroy old viewer listeners on WAV reload
Each loadAudioBuffer() was creating a new SpectrogramViewer without
removing the previous one's canvas event listeners. Old viewers would
fire on every mouse event, rendering stale spectrogram data and calling
editor.onPartialSelect() with out-of-range indices (hiding the amp panel).
Fix: store handlers as named instance properties, add destroy() to remove
them, and call destroy() before creating a new viewer.
handoff(Claude): bug fix only, no behaviour change
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'workspaces/test/test_assets/test_asset_1.txt')
0 files changed, 0 insertions, 0 deletions
