dillon1000/react
Commit
Browse files React events: fix press end event dispatching (#15500)
This patch fixes an issue related to determining whether the end event occurs within the responder region. Previously we only checked if the event target was within the responder region for moves, otherwise we checked if the target was within the event component. Since the dimensions of the child element can change after activation, we need to recalculate the responder region before deactivation as well if the target is not within the event component.
Changed paths3 files
First-parent comparisonpackages/react-events/src/Press.js ModifiedM packages/react-events/src/__tests__/Press-test.internal.js ModifiedM packages/react-events/src/utils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…