Skip to content

fix: onDoubleTap never called when onTap is also set - #656

Draft
MatiPl01 wants to merge 3 commits into
mainfrom
fix/touchable-double-tap-with-tap
Draft

MatiPl01 wants to merge 3 commits into
mainfrom
fix/touchable-double-tap-with-tap

Conversation

@MatiPl01

Copy link
Copy Markdown
Owner

Description

onDoubleTap of Sortable.Touchable never fired when onTap was also set in the default 'exclusive' gesture mode. An exclusive gesture waits only for the gestures listed before it, and the single tap was listed first, so it always won.

The double tap is now listed first, which is the order gesture-handler documents for this pair.

Behavior change to be aware of: with both callbacks set, onTap is now called only after the double tap fails (about 200 ms after the touch ends) and is no longer called for each tap of a double tap. Nothing changes when only one of them is set, or in the 'simultaneous' mode.

Testing

New jest tests for both gesture-handler adapters (fail on main). Not checked on a device.

@MatiPl01 MatiPl01 self-assigned this Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
react-native-sortables-docs Ignored Ignored Preview Nov 26, 2026 2:02pm UTC

@github-actions github-actions Bot added documentation Improvements or additions to documentation fix test labels Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation fix test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant