Skip to content

fix: show swipe action labels and balance diagonal swipes with scrolling - #179

Open
l4kr wants to merge 1 commit into
bulwarkmail:mainfrom
l4kr:fix/swipe-action-labels
Open

l4kr wants to merge 1 commit into
bulwarkmail:mainfrom
l4kr:fix/swipe-action-labels

Conversation

@l4kr

@l4kr l4kr commented Nov 24, 2026 •

Copy link
Copy Markdown

Swiping a row in instant mode showed only the colored background band with no action icon or label, wider labels like "Mark as unread" clipped under the sliding row edge near the commit line, and natural diagonal or fast thumb swipes often fell through into vertical scrolling.

  • Subscribe each swipe band's icon style directly to its shared values instead of closing over an inline helper function that Reanimated's mapper ignored, and keep bands mounted when a new touch lands as a settling spring finishes.
  • Fit wide band labels within the exposed strip from the disarm threshold upward so both edges stay clear in either swipe direction, then ride along once there is room.
  • Switch row pan activation to a UI-thread angle check (~40° horizontal cone vs vertical scroll), arbitrate natively with the list's ScrollView (keeping RefreshControl working on iOS and wrapped outside the scroll detector on Android), remove the zero-crossing dead zone, and add arm/disarm hysteresis plus cross-zero armed-state reset for shaky drags.

Proved with npm run typecheck, npm test (696 suites / 8,325 tests passing alongside the pre-existing single-byte-text-decoder ICU failure on this host, including new swipe-band-visibility.test.ts and expanded swipe/scroll tests), and live iOS simulator recordings covering pull-to-refresh, wide labels at the commit threshold, diagonal swipes, diagonal scrolling, and row taps:

pr-179-swipe-demo.mp4

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