Repository navigation
Description
Summary
On a compact viewport, an opening sidebar swipe can leave the page only partly shifted if its terminal touch or pointer event never reaches the handler. The drawer is then logically open, so later opening swipes are ignored until a reload. A separate quick-swipe path ignores the release coordinate and can settle closed despite sufficient travel.
Versions and environment
- Source app 0.43.4 at
b2ff250e5efb93e0cb4a954d7c63680d53b6d4a4(origin/mainat reproduction), run throughpnpm start:worktreeon macOS with Node 22.23.1. - Deterministic compact browser procedure uses Chromium at 390 × 844 with synthesized DOM touch events. The reported intermittent physical-device behavior is a strong match, not a physical-device reproduction.
Steps to reproduce
- Start the source app on a fresh store and open it at a 390 × 844 touch viewport.
- Start a rightward touch at
(40, 350)inside[data-sidebar="inset"]; move to(60, 350)and deliberately omittouchend/touchcancel. - Start a new touch at
(40, 350)with a new identifier; move to(190, 350)and release. - Inspect
[data-sidebar="panel"]state and[data-sidebar="inset"]inlinetranslateafter 220 ms. - For the text-selection variant, select text inside
[data-sidebar-swipe-selectable]after step 2 and dispatchselectionchange.
The thread-storage browser procedure used for the fix also covers a tap, normal opening and closing swipes, and the desktop trigger. The regression tests in apps/app/src/components/ui/sidebar.test.tsx failed against the pre-fix handler for touch and pointer interruption.
Expected vs actual
Expected after step 3: the next valid swipe recovers and fully opens the sidebar with no leftover inline translation.
Actual before the fix: the panel remains data-state="open", but the inset retains style.translate="20px"; the new swipe is rejected. After text selection, the swipe session can be cleared while the drawer remains logically open.
Evidence
- Drag intent commits
openMobile=truebefore the gesture ends: source. - Both new-gesture paths reject
openMobile, including the interrupted state: touch, pointer. - Text-selection cancellation clears tracking without resetting the partially dragged drawer: source.
- Related PR Recover iOS sidebar swipes after interrupted touch sessions #3544 recovered interrupted sessions before drag intent, but does not cover a lost terminal event after the drawer becomes logically open.
What you ruled out
- No matching open or closed issue appeared for
sidebar swipe,sidebar reload swipe, orswipe sidebar stuckon 2026-09-22. Closed Edge-swipe open ignores finger; cancelled swipe fully opens #2046 concerns a separate Silk drawer migration and full-open thrash. - This is a browser-level deterministic reproduction, not proof of which event is lost on a physical phone.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 22, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotBug · Medium priority · Low effort. Applied
ui,mobile, andconfirmed-repro.Reproduction and root-cause report: REPRODUCED, high root-cause confidence on trusted main
3d70b9613.Drag intent marks the drawer open before completion; new gestures reject that state, and selection cancellation leaves it uncleared. Release handlers also ignore final coordinates. Two clean checkouts produced the same five regression failures with 35 tests passing; Chromium confirmed the retained 32px translation. Physical-device event loss remains unverified.
No duplicate PR opened: existing PR #4112 already links this issue.
Recover compact sidebar swipes after interrupted drags (get-bb#4112)