Skip to content

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.

fix(walk): keep the gesture tray out of the HUD column and give Enter back to focused controls

nirholasc8308a6a0f80
diff --git a/data/changelog.json b/data/changelog.json
index 385fb0c26..b89f2d7c9 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-09-08",
+ "title": "Every button on Drive Your Avatar is reachable again, by mouse and by keyboard",
+ "summary": "Two things were quietly breaking the controls on Drive Your Avatar. The gesture tray grew up the right-hand edge until it sat on top of the HUD column beside it, so Photo, Record, Map and the help button silently stopped taking clicks; the tray now keeps to the lower band and wraps into a second column instead of climbing into the buttons. Separately, pressing Enter anywhere on the page jumped straight to the chat box, which meant a keyboard user could tab to any control and never activate it. Enter now belongs to whatever you have focused, and only opens chat when you are looking at the scene. Along the way: the radar moved off the crowded bottom edge on phones, the chat box no longer pushes its send button off a narrow screen, the avatar list tells you when it could not load instead of always saying you are signed out, and the coin-world picker closes on Escape.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/temporary"
+ },
{
"date": "2026-09-08",
"title": "Avatars of people now come off the stronger lane, and stop standing on a slab of their own backdrop",
diff --git a/pages/temporary.html b/pages/temporary.html
index 7ca32fcbe..577331eef 100644
--- a/pages/temporary.html
+++ b/pages/temporary.html
@@ -653,7 +653,24 @@
flex-direction: column;
gap: 6px;
align-items: flex-end;
+ /* The HUD action column owns the same right rail and paints below
+ this tray, so a tray taller than the gap grew straight up
+ through it and swallowed the clicks for Photo, Record, Map and
+ the help button. Two rules keep both reachable: the tray is
+ capped to the band left under the HUD column (which needs
+ ~580px from the top of the viewport), and anything past that
+ wraps into a second column growing leftward into open scene
+ rather than upward into the HUD. The floor keeps a usable two
+ rows of gestures on a short window. */
+ max-height: max(132px, calc(100vh - 612px));
+ flex-wrap: wrap-reverse;
+ align-content: flex-end;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ -ms-overflow-style: none;
+ scrollbar-width: none;
}
+ .walk-emote-tray::-webkit-scrollbar { display: none; }
.walk-emote-btn {
appearance: none;
width: 44px;
@@ -711,9 +728,27 @@
align-items: center;
max-width: calc(100vw - 24px);
gap: 8px;
+ /* The row wraps across the screen instead of stacking up the
+ right rail, so the desktop band cap does not apply. */
+ max-height: none;
+ align-content: center;
+ overflow: visible;
}
.walk-emote-btn { width: 40px; height: 40px; font-size: 18px; }
.walk-emote-btn .emote-label { display: none; }
+
+ /* On a phone the bottom band is already carrying the joysticks,
+ the touch action cluster, the chat composer and the gesture
+ row, and the radar's own corner was the one that lost: it sat
+ on top of the chat input and the first three gestures. Moving
+ it to the free left edge below the identity card gives it the
+ corner of its own the desktop layout assumes. walk.js positions
+ the element with an inline style attribute, so this override
+ has to outrank it. */
+ #walk-minimap {
+ top: calc(env(safe-area-inset-top, 0) + 180px) !important;
+ bottom: auto !important;
+ }
}
/* ── Gesture wheel (radial picker — hold G / long-press) ────── */
@@ -1201,8 +1236,14 @@
/* ── Walk HUD overflow scroll on small screens ──────────────── */
.walk-actions {
- max-height: calc(100vh - 180px);
+ /* Reserves the bottom band for the emote tray and the bottom-right
+ page chrome, which paint above this column: without the reserve
+ the last buttons landed under them and stopped taking clicks.
+ At a normal window height the full column still fits inside the
+ ceiling, so nothing scrolls; a short window scrolls the tail. */
+ max-height: calc(100vh - 240px);
overflow-y: auto;
+ overscroll-behavior: contain;
-ms-overflow-style: none;
scrollbar-width: none;
}
diff --git a/src/walk.js b/src/walk.js
index 1ecb5fdd3..07478938d 100644
--- a/src/walk.js
+++ b/src/walk.js
@@ -250,7 +250,14 @@ function setLoadingText(text) {
function dismissLoading() {
if (!loadingOverlay) return;
loadingOverlay.classList.add('is-done');
- loadingOverlay.addEventListener('transitionend', () => loadingOverlay.remove(), { once: true });
+ // transitionend is the fast path, but it never fires when the fade is
+ // suppressed (prefers-reduced-motion sets `transition: none`) or when the
+ // browser skips the transition entirely, which would leave a full-screen
+ // div parked over the scene forever. The timer guarantees the removal; the
+ // listener just makes it prompt.
+ const drop = () => loadingOverlay.remove();
+ loadingOverlay.addEventListener('transitionend', drop, { once: true });
+ setTimeout(drop, 600);
}
// ── Name persistence ─────────────────────────────────────────────────────
@@ -4917,17 +4924,22 @@ if (import.meta.env?.DEV) {
net?.sendChat(text);
});
+ // Enter opens the chat composer, but only while the player is "in the scene".
+ // Any focused control owns its own Enter activation, and swallowing it there
+ // made every HUD button keyboard-dead: tab to Avatar, Scene, AR or Hide UI,
+ // press Enter, and the chat box stole the key instead of the button firing.
+ const ENTER_OWNERS = /^(INPUT|TEXTAREA|SELECT|BUTTON|A|SUMMARY|OPTION|LABEL)$/;
+ function ownsEnterKey(el) {
+ if (!el || el === document.body) return false;
+ if (el.isContentEditable) return true;
+ return ENTER_OWNERS.test(el.tagName);
+ }
+
window.addEventListener('keydown', (e) => {
- if (
- e.key === 'Enter' &&
- !e.shiftKey &&
- document.activeElement !== chatInput &&
- document.activeElement?.tagName !== 'INPUT' &&
- document.activeElement?.tagName !== 'TEXTAREA'
- ) {
- e.preventDefault();
- chatInput?.focus();
- }
+ if (e.key !== 'Enter' || e.shiftKey) return;
+ if (ownsEnterKey(document.activeElement) || ownsEnterKey(e.target)) return;
+ e.preventDefault();
+ chatInput?.focus();
});
window._walkChat = { addChatMessage };