From bc55da6b1e8d4fe8af815a887f9f3bb021f132a4 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Jun 2026 01:15:15 +1000 Subject: [PATCH] fix(dross): don't auto-focus input on open (no surprise mobile keyboard) Keyboard now only appears when the user taps the input box. Co-Authored-By: Claude Opus 4.8 --- package.json | 2 +- public/components/dross_bubble.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e36d9a..5acacf3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "void-server", - "version": "2.12.0", + "version": "2.12.1", "type": "module", "private": true, "scripts": { diff --git a/public/components/dross_bubble.js b/public/components/dross_bubble.js index 17876f4..9fcf844 100644 --- a/public/components/dross_bubble.js +++ b/public/components/dross_bubble.js @@ -52,7 +52,8 @@ export async function renderDrossBubble() { const top = Math.max(8, Math.min(r.bottom - pr.height, innerHeight - pr.height - 8)); panel.style.right = 'auto'; panel.style.bottom = 'auto'; panel.style.left = left + 'px'; panel.style.top = top + 'px'; if (!loaded) { loaded = true; chat.load(); } - input.focus(); + // NB: do NOT auto-focus the input — on mobile that pops the keyboard every + // time Dross opens. The keyboard should only appear when the user taps the box. } function closePanel() { panel.classList.remove('open'); fab.style.display = 'block'; } fab.addEventListener('click', () => { if (fab._moved) { fab._moved = false; return; } openPanel(); });