From 1a8a445a78a322b3de6f366d3bb2701fb460c0e9 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 25 Jul 2026 15:57:17 +0000 Subject: [PATCH] Prevent iOS double-tap zoom --- index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.html b/index.html index e72a833..605c3ad 100644 --- a/index.html +++ b/index.html @@ -25,6 +25,7 @@ } *{box-sizing:border-box} html,body{margin:0;padding:0} +html{touch-action:manipulation} body{ background:var(--bg); color:var(--txt); @@ -38,6 +39,7 @@ body{ linear-gradient(90deg, rgba(0,240,255,.028) 1px, transparent 1px); background-size:32px 32px; } +button,input,select,.chip,.stepper,.quick-summary{touch-action:manipulation} .wrap{max-width:760px;margin:0 auto;padding:0 14px} /* ---------- Kopf ---------- */ @@ -1195,6 +1197,15 @@ function copyText(){ window.addEventListener("hashchange",()=>{ if(!hashLock){ readHash(); render(); }}); setInterval(()=>{ if(lastR) renderTimeline(lastR); }, 30000); +/* iOS Safari zoomt sonst bei schnellem Doppeltippen auf Buttons/Slider. + Pinch-Zoom bleibt unberührt; verhindert wird nur der Double-Tap-Default. */ +let lastTouchEnd = 0; +document.addEventListener("touchend", e=>{ + const now = Date.now(); + if (now - lastTouchEnd <= 320) e.preventDefault(); + lastTouchEnd = now; +}, {passive:false}); + /* ---------- Start ---------- */ readHash(); initUI();