fix(entries): stop diagonal scrolls from turning into swipes #2

Merged
marti merged 1 commit from feature/entry-list-swipe-scroll into develop 2026-11-24 13:02:08 +01:00
Owner

Summary

The entry row's swipe (read/star) and the list's scroll race for the touch; whichever passes its threshold first wins and cancels the other.

 touch moves
   list scrolls      after 8dp vertical
-  row swipes        after 10dp horizontal   -> wins on drags > ~40 deg off vertical
+  row swipes        after 24dp horizontal   -> wins only within ~18 deg of horizontal

ReanimatedSwipeable exposes no failOffsetY, so the fix raises dragOffsetFromLeft/dragOffsetFromRight to 24dp. The 88dp threshold that triggers read/star is unchanged.

Evidence

  • Before: a slightly diagonal scroll on the entry list starts a swipe and stops the scroll (reported).
    After: npm run lint && npm run typecheck && npm test pass (19/19). Not yet checked on the emulator: it was held by another session.

Merge Danger

Door: two-way

One constant; revert or tune SWIPE_START in EntryRow.tsx.

Blast Radius: swipes

Deliberate swipes need 14dp more sideways travel before the row moves.

🤖 Generated with Claude Code

## Summary The entry row's swipe (read/star) and the list's scroll race for the touch; whichever passes its threshold first wins and cancels the other. ```diff touch moves list scrolls after 8dp vertical - row swipes after 10dp horizontal -> wins on drags > ~40 deg off vertical + row swipes after 24dp horizontal -> wins only within ~18 deg of horizontal ``` `ReanimatedSwipeable` exposes no `failOffsetY`, so the fix raises `dragOffsetFromLeft`/`dragOffsetFromRight` to 24dp. The 88dp threshold that triggers read/star is unchanged. ## Evidence - **Before:** a slightly diagonal scroll on the entry list starts a swipe and stops the scroll (reported). **After:** `npm run lint && npm run typecheck && npm test` pass (19/19). Not yet checked on the emulator: it was held by another session. ## Merge Danger **Door:** two-way One constant; revert or tune `SWIPE_START` in `EntryRow.tsx`. **Blast Radius:** swipes Deliberate swipes need 14dp more sideways travel before the row moves. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(entries): stop diagonal scrolls from turning into swipes
All checks were successful
ci / check (push) Successful in 27s
08ca0e4710
The row's swipe claimed the touch after 10dp of sideways travel, while
the list only starts scrolling after 8dp of vertical travel, so a scroll
drifting more than about 40 degrees off vertical became a read/star
swipe. Start the swipe at 24dp so a drag must stay within about 18
degrees of horizontal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marti merged commit 469f5b5511 into develop 2026-11-24 13:02:08 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
reef/android!2
No description provided.