dillon1000/react

Commit

[react-ui/events] Tap responder API changes (#16827)

This patch limits the `onTap*` callbacks to the primary pointer button.
Auxiliary button and modified primary button interactions call
`onAuxiliaryTap`, cancel any active tap, and preserve the native behavior.
Browse files
Changed paths7 files
First-parent comparison
M packages/react-ui/events/src/dom/Press.js ModifiedM packages/react-ui/events/src/dom/Tap.js ModifiedM packages/react-ui/events/src/dom/__tests__/Press-test.internal.js ModifiedM packages/react-ui/events/src/dom/__tests__/PressLegacy-test.internal.js ModifiedM packages/react-ui/events/src/dom/__tests__/Tap-test.internal.js ModifiedM packages/react-ui/events/src/dom/shared/index.js ModifiedM packages/react-ui/events/src/dom/testing-library/domEnvironment.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…