Skip to content

Fix right swipe on scrolled tables and code blocks closing subagent pages - #24

Merged
Tarquinen merged 1 commit into
mainfrom
fix/table-swipe-drawer
Nov 10, 2026
Merged

Tarquinen merged 1 commit into
mainfrom
fix/table-swipe-drawer

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

On a subagent page, a slanted right swipe over a table, code block or math that was scrolled sideways could close the page instead of scrolling back. The back swipe now checks at touch-down whether the content can still scroll back, as iOS does. A swipe from the 28 dp edge still goes back.

The main screen version of this bug (the swipe opening the session list) was already fixed in v0.3.8.

…roll back

A right swipe on a scrolled code block, table, math or attachment strip on a
pushed page (a subagent) could pop the page instead of scrolling back. The back
pan only treated the swipe as content's once the scroller had consumed it, and
Compose's scrollable only checks its slop horizontally, so a slanted swipe
reached the 8 dp decision first and popped the page.

The back pan now reads the top page's horizontal scrollers at touch-down, as
iOS BackPanGestureRecognizer does (BackSwipeRules.scrollerClaims): a touch on a
scroller that can still scroll back keeps the rightward drag, except from the
28 dp edge, which always goes back. Each page provides its own
LocalDrawerPanExclusion (PageHorizontalScrollers) that also forwards to the
drawer's regions, so the root drawer's existing touch-down rule is unchanged.

The reported bug (a right swipe on a scrolled table or long URL in a code block
opening the session list) reproduces on v0.3.0 and was fixed on the root
screen in v0.3.8 (eeec586); this closes the same hole on pushed pages.

Verified: vm.sh check :feature:session and the full vm.sh check pass. On the
emulator (session-lab typography, link-icons with a streamed URL code block,
subagent): the table and URL code block scroll back with a right swipe and the
session list stays shut; plain text and a table at its left edge still open the
session list; on the subagent page a scrolled code block keeps straight and
diagonal (dy 300/450 px) right swipes, while an edge swipe and plain text still
go back. Before/after video in shots/table-swipe.
@Tarquinen
Tarquinen merged commit 84e4509 into main Nov 10, 2026
1 check passed
Tarquinen added a commit that referenced this pull request Nov 10, 2026
…show-more fix

Brings in #24 (a pushed page leaves a rightward swipe to a horizontal
scroller that can still scroll back) and #25 (no black box under a long
collapsed user message). Both merged cleanly in code; docs/parity/session.md
keeps #5's iOS 01eef583 line counts and notes and adds main's scrollerClaims
note to the SessionPageStack row.

Verified: python3 scripts/ios-sync.py check (854 rows, 0 errors);
scripts/check.sh :feature:transcript :feature:session on the Android VM.

This branch was previously deployed

1 inactive deployment
release — 32882d2c Deployed Nov 10, 2026 by Tarquinen via check #82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant