dillon1000/react

Commit

React events: ignore device buttons that aren't for primary interactions (#15402)

The Pointer Events spec mentions that the value of `button` in a nativeEvent
can be anything between 0 and 5 for "down" events. We only care about those
with a value of 0.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-events/src/Press.js ModifiedM packages/react-events/src/__tests__/Press-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…