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 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-10 01:15:15 +10:00
parent e29bacbda1
commit bc55da6b1e
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "void-server",
"version": "2.12.0",
"version": "2.12.1",
"type": "module",
"private": true,
"scripts": {

View File

@@ -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(); });