From 9c731f087e5747e59b375bcc6ae3f4c6f3a63ba6 Mon Sep 17 00:00:00 2001 From: sravan Date: Sun, 19 Jul 2026 23:17:13 +0530 Subject: [PATCH] =?UTF-8?q?mobile:=20iOS=20PWA=20keyboard=20=E2=80=94=20pi?= =?UTF-8?q?n=20app=20to=20visual=20viewport=20+=20undo=20webview=20scroll?= =?UTF-8?q?=20so=20header=20stays;=20swipe-back=20telemetry=20(batch140)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/public/home.html | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/server/public/home.html b/server/public/home.html index 2f8da8d..7d9c103 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -1158,7 +1158,7 @@ -
Biz Connect
Loading…
@@ -4984,6 +5000,7 @@ window.addEventListener('popstate', ()=>{ if(bzcBack()){ try{ history.pushState( document.body.classList.add('chat-dragging'); if(content) content.style.transition='none'; if(chatcol) chatcol.style.transition='none'; + if(window.bzDbg) window.bzDbg('swipe',{s:'confirm',hasC:content?1:0,hasL:chatcol?1:0,sx:Math.round(sx),dx:Math.round(dx),w:Math.round(w),cCls:content?String(content.className).slice(0,20):'NULL'}); // TEMP } else return; } e.preventDefault(); // needs passive:false — claims the gesture @@ -4995,6 +5012,7 @@ window.addEventListener('popstate', ()=>{ if(bzcBack()){ try{ history.pushState( if(!dragging){ armed=false; return; } const t=(e.changedTouches&&e.changedTouches[0]); const dx=t?Math.max(0,t.clientX-sx):0, dt=Math.max(1,Date.now()-t0), v=dx/dt; + if(window.bzDbg) window.bzDbg('swipe',{s:'end',dx:Math.round(dx),w:Math.round(w),v:Math.round(v*100)/100,done:(dx>w*0.35||(v>0.5&&dx>40))?1:0}); // TEMP if(dx>w*0.35 || (v>0.5 && dx>40)){ // complete the pop if(content){ content.style.transition='transform .17s cubic-bezier(.4,0,.7,.4)'; content.style.transform='translate3d(100%,0,0)'; } if(chatcol){ chatcol.style.transition='transform .17s cubic-bezier(.4,0,.7,.4)'; chatcol.style.transform='translate3d(0,0,0)'; }