╭ changed ──────────╮ │src/embed/script.js│ ╰───────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │222 grid.addEventListener("click", (event) => { │ │223 const span = event.target.closest(".clickable"); │ │224 if (!span) return; │ │225 + // leave modified / non-left clicks (open-in-new-tab, etc.) to the browser │ │226 + if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;│ │227 + // wasm routes the click: an in-page link just moves focus and re-renders, │ │228 + // a cross-page one calls _navigate. suppress the <a>'s own navigation so │ │229 + // an in-page link doesn't also trigger a redundant full page load. │ │230 + event.preventDefault(); │ │231 const focusId = Number(span.dataset.focusId); │ │232 wasmInstance.exports._onMouseClick(focusId); │ │233 wasmInstance.exports._tick(minRows(), maxCols()); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯