Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(play): don't focus the intro's Drop In button while the boot loader still covers it
nirholas58aa44788b2b
diff --git a/src/game/play-intro.js b/src/game/play-intro.jsindex ee0971338..e1a022770 100644--- a/src/game/play-intro.js+++ b/src/game/play-intro.js@@ -256,7 +256,18 @@ export function showPlayIntro({ onDropIn, force = false } = {}) {requestAnimationFrame(() => {overlay.classList.add('pi-show');- card.querySelector('.pi-btn-primary')?.focus();+ // Focus the primary action only once the boot loader is gone: the intro+ // mounts underneath the still-opaque #kx-loading, and a focused button+ // there turns a stray Enter during loading into an invisible "Drop in".+ const focusPrimary = () => card.querySelector('.pi-btn-primary')?.focus();+ const loader = document.getElementById('kx-loading');+ if (!loader || loader.classList.contains('kx-hidden')) { focusPrimary(); return; }+ const watch = new MutationObserver(() => {+ const gone = !document.getElementById('kx-loading')+ || document.getElementById('kx-loading').classList.contains('kx-hidden');+ if (gone) { watch.disconnect(); focusPrimary(); }+ });+ watch.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['class'] });});return { close };