morse: add multimon decoder alias fallback and clear stale idle scope

This commit is contained in:
Smittix
2026-02-26 17:43:23 +00:00
parent 794dd693cf
commit 24d1777e63
2 changed files with 279 additions and 228 deletions

View File

@@ -832,6 +832,17 @@ var MorseMode = (function () {
}
function stopScope() {
var canvas = el('morseScopeCanvas');
if (canvas) {
var ctx = canvas.getContext('2d');
if (ctx) {
var w = canvas.clientWidth || canvas.width || 1;
var h = canvas.clientHeight || 80;
ctx.clearRect(0, 0, w, h);
ctx.fillStyle = '#050510';
ctx.fillRect(0, 0, w, h);
}
}
if (scopeAnim) {
cancelAnimationFrame(scopeAnim);
scopeAnim = null;