A tap on a phone is a click, not a zoom

Double-tap zoom is off from the root down, and the viewport's maximum
scale keeps iOS from zooming into a small field when it takes focus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9
This commit is contained in:
Olive Vaughn 2026-10-10 23:52:23 -04:00
parent 0291d7c628
commit b40564ad97
3 changed files with 7 additions and 2 deletions

View file

@ -18,7 +18,7 @@ and PUTs with ordinary CSRF protection — no endpoint in this app is exempt.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>arthur</title>
<link rel="stylesheet" href="{% static 'arthur/app.css' %}?v={{ css_version }}">
</head>

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>arthur</title>
<style>
:root { --bg:#0b0d13; --panel:#12151f; --line:#232836; --fg:#e8eaf0;

View file

@ -85,6 +85,11 @@
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
/* AN EDITOR, NOT A PAGE: a tap is a click, never the first half of a
double-tap zoom. Set on the root, it reaches everything under it, and an
element that says `none` — the stage, a grip — still gets its own way. The
zoom on focusing a small field is the viewport's `maximum-scale`. */
html { touch-action: manipulation; }
body {
background: var(--desk);