Swipe Action List Row

One list row carrying three gestures at once — tap, long-press-to-select, and swipe-sideways-for-an-action — plus a mode flag that changes what the tap means. Covers the pointerInput key that decides whether the swipe detector sees the current mode or the one captured at composition, translating the row in the layout phase, latching the commit threshold, and leaving the opposite drag direction to the parent. Use when a row keeps swiping after multi-select has started, when selection only begins working after the row happens to recompose, or when a swipe fights the pager or list underneath.

maxrave-dev 7c31ecc 7.7 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/swipe-action-list-row commit 7c31eccabf

Frequently asked questions

npx skillmds@latest add maxrave-dev/swipe-action-list-row