dillon1000/react

Commit

React events: add onPressMove and pressRetentionOffset to Press (#15374)

This implementation differs from equivalents in React Native in the following ways:

1. A move during a press will not cancel onLongPress.
2. A move to outside the retention target will cancel the press and not
reactivate when moved back within the retention target.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-events/README.md ModifiedM packages/react-events/src/Press.js ModifiedM packages/react-events/src/__tests__/Press-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…