Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate entered/exited views during handling of all MotionEvents (#…
…36666) Summary: Pull Request resolved: #36666 Modify JSPointerDispatcher to dispatch out/over/leave/enter events on handing of any MotionEvent. This functionality is in parity with [how touch events are handled in iOS](https://www.internalfb.com/code/fbsource/[cdfd2520a4d43b3a46104ecbf437bb792460e3f7]/xplat/js/react-native-github/packages/react-native/React/Fabric/RCTSurfacePointerHandler.mm?lines=780). handleMotionEvent updates the last hit path upon any MotionEvent, so we want to make sure that we handle any out/over/leave/enter dispatches in this method. This diff just extracts the dispatching of out/over/leave/enter from onMove() to handleMotionEvent(). Changelog: [Internal] - Calculate entered/exited views on all touch/move events Reviewed By: javache, mdvacca Differential Revision: D44426524 fbshipit-source-id: 5225c54c2c995440ac766c6fbc99c08f05c70a92
- Loading branch information