From b1d411c8e7be135a0139b01c60d33be39376d776 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 8 Jun 2026 13:48:54 -0400 Subject: [PATCH] No hover focus or inspector when rhyme is off setEmphasis clears when the rhyme toggle is off, so hovering doesn't light a family or show the inspector with the rhyme layer disabled. Co-Authored-By: Claude Opus 4.8 (1M context) --- static/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/static/index.html b/static/index.html index abf69d6..937231e 100644 --- a/static/index.html +++ b/static/index.html @@ -848,6 +848,7 @@ editor.addEventListener('input', ()=>{ render(); analyzeSoon(); }); editor.addEventListener('scroll', ()=>{ highlight.scrollTop = stresslayer.scrollTop = editor.scrollTop; highlight.scrollLeft = stresslayer.scrollLeft = editor.scrollLeft; renderGutter(); }); const editorShell = document.querySelector('.editor-shell'); function setEmphasis(g){ + if(!rhymeToggle.checked) g = null; // no rhyme layer, no focus if(g === activeFam) return; activeFam = g; editorShell.classList.toggle('focusing', g !== null);