---
title: "Swipe Row"
url: "https://sanyam.sh/lab/swipe-row"
date: "2026-10-18"
---

# Swipe Row

Swipe a row left or right. Swipe far to act.

an inbox you swipe the way mail does. a short swipe opens the actions, a long one does them, and a trackpad swipe drives the same row.

key insight: the row goes where its momentum would carry it, not where the finger let go. the release velocity is projected the way a scroll view decays, so a short flick opens a row and a slow drag back closes it.

the far action arms past half the row and lets go under 44%, so a hand resting on the line does not flicker it. everything that moves reads one offset, so the face and the actions under it cannot disagree.

- Source: https://github.com/SanyamPunia/www/blob/main/components/labs/swipe-row/swipe.ts
