Repository navigation
Fix right swipe on scrolled tables and code blocks closing subagent pages - #24
Merged
Merged
Conversation
…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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.