dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonpackages/react-events/src/Press.js ModifiedM packages/react-events/src/__tests__/Press-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…