From a198b815d2e991475dcc1db55d507eccdf730834 Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Thu, 22 Oct 2026 19:18:51 +0200 Subject: [PATCH] docs: update the swipe limits and note what pauses or replaces a swipe Merge-time fix for #674: the mobile-handlers.js @fileoverview still gave the old 300 ms and 100 px limits (now 500 ms and 50 px), and the Mobile Guide now says a visible text selection pauses the swipe and a terminal wider than the screen pans instead of switching. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/wiki/Mobile-Guide.md | 3 ++- src/web/public/mobile-handlers.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/wiki/Mobile-Guide.md b/docs/wiki/Mobile-Guide.md index 11a78292..98a4dd89 100644 --- a/docs/wiki/Mobile-Guide.md +++ b/docs/wiki/Mobile-Guide.md @@ -37,7 +37,8 @@ a bottom sheet rather than a dropdown. On a folding phone (iPhone Duo) dialogs s the hinge, and opening or closing the device is treated as the device changing shape, never as the keyboard appearing. -**Swipe left and right** on the terminal to switch sessions. +**Swipe left and right** on the terminal to switch sessions. A visible text selection pauses +the swipe, and a terminal wider than the screen pans sideways instead of switching. ## The home screen diff --git a/src/web/public/mobile-handlers.js b/src/web/public/mobile-handlers.js index 9bfd9acb..3c3ba549 100644 --- a/src/web/public/mobile-handlers.js +++ b/src/web/public/mobile-handlers.js @@ -9,7 +9,7 @@ * toolbar/accessory bar repositioning, terminal resize on keyboard open/close, * and input scroll-into-view. Uses 100px threshold for iOS address bar drift. * - SwipeHandler — Horizontal swipe detection on the terminal area for session switching. - * 80px minimum distance, 300ms maximum time, 100px max vertical drift. + * 80px minimum distance, 500ms maximum time, 50px max vertical drift. * * All three have init()/cleanup() lifecycle methods. They are re-initialized after SSE * reconnect (in handleInit) to prevent stale closures.