df273d35620b

before sync pro gate fix

time
2026-05-09 01:35 UTC · 5 months ago
machine
koh2
parent
276cbbc17ab5
1 file src/popup/App.tsx+7 −5
src/popup/App.tsx+7 −5
@@ -521,6 +521,7 @@521521       let captured = false;522522       const HORIZONTAL_TOLERANCE = 16;523523       const ACTIVATION_DY = 8;524+      const PEEK_PX = 60;524525 525526       const onTouchStart = (e: TouchEvent) => {526527         const t = e.touches[0];@@ -557,10 +558,10 @@557558           captured = true;558559         }559560 560-        // Translate the sheet by dy from its rest position. At rest the sheet561-        // is fully off-screen (translateY = viewport height). Open is 0.561+        // Translate the sheet by dy from its rest (peek) position. Peek is562+        // (viewport height - PEEK_PX). Open is 0.562563         const v = view();563-        const restClosed = window.innerHeight;564+        const restClosed = window.innerHeight - PEEK_PX;564565         const baseTranslate = v === "list" ? 0 : restClosed;565566         const next = Math.max(0, Math.min(restClosed, baseTranslate + dy));566567         setSheetTranslate(next);@@ -578,12 +579,13 @@578579         captured = false;579580 580581         if (!wasCaptured) {581-          // It was a tap, not a drag. Let the underlying click handler run.582+          // Tap in the peek strip while in entry view → open the vault list.583+          if (v === "entry" && touchStartY > window.innerHeight - PEEK_PX) setView("list");582584           setSheetTranslate(null);583585           return;584586         }585587 586-        const restClosed = window.innerHeight;588+        const restClosed = window.innerHeight - PEEK_PX;587589         const current = sheetTranslate() ?? restClosed;588590         const v = view();589591 

view file