Skip to content

Remove the drawer pan's unused Catch Up and claim paths - #142

Merged
Tarquinen merged 1 commit into
devfrom
drawer-pan-leftovers
Nov 18, 2026
Merged

Tarquinen merged 1 commit into
devfrom
drawer-pan-leftovers

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Removes code in the drawer pan that nothing reaches.

  • DrawerPanRegions.claims was never written, so its one read was always false.
  • CatchUpStackController.handlePan and CatchUpStack's handlesPan had no callers.
  • drawerDirectionalPan's isCardSwipe was never passed, so every card-swipe branch inside it (and yieldsToHold's copy) was unreachable. Modifier.drawerPanDragCard and the drawer's own drawerPanHorizontalScroller had no callers (the drawer uses core's). TouchOrigin.DrawerRow was never produced.

Kept: cardSwipeDecision and CardSwipeOrigin (Catch Up's own pan uses them) and scrollersAt.

The test rows for DrawerRow and isCardSwipe go with them. docs/parity/drawer.md updated.

Verified: grepped src/main and src/test in every module for each symbol; vm.sh check (all modules) passes.

Catch Up runs its own swipe and the container's pan is off while it shows, so the
drawer pan's card-swipe mode (isCardSwipe, the drag card region) and
CatchUpStackController.handlePan had no callers. The claims map was never
written, the drawer-local drawerPanHorizontalScroller was never called (callers
use core's), and TouchOrigin.DrawerRow was never produced. No behaviour change.
@Tarquinen
Tarquinen merged commit b02d319 into dev Nov 18, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — 1990689e Deployed Nov 18, 2026 by Tarquinen via check #472
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