mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 00:13:37 +00:00
Adds Gmail-style horizontal swipe actions to message rows on touch devices. Swiping a row past a threshold fires a configurable action and snaps back; a coloured background with an icon is revealed under the finger and grows when the release would commit. - New `useSwipeActions` hook: claims a touch as a swipe only once the horizontal travel dominates (vertical stays native list scrolling via `touch-action: pan-y`, no preventDefault), resists past the commit distance, and suppresses the tap that would otherwise follow. - Two settings (Settings -> reading/email behavior): "Swipe right action" (default Archive) and "Swipe left action" (default Delete), each one of none / archive / delete / toggle read / toggle star / spam. A direction set to an action the current folder does not expose simply does nothing. - Composes with the existing long-press (context menu) handlers; desktop is unchanged (hover actions + right-click). - Scoped to single-message rows; unit tests cover commit/short-drag/ no-action-side/vertical-scroll/tap-suppression.