Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate entered/exited views during handling of all MotionEvents #36666

Closed
wants to merge 1 commit into from

Commits on Mar 31, 2023

  1. Calculate entered/exited views during handling of all MotionEvents (f…

    …acebook#36666)
    
    Summary:
    Pull Request resolved: facebook#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: f8765ae90f13cd5ebf98680ae6af54e789274ce2
    genkikondo authored and facebook-github-bot committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    f546482 View commit details
    Browse the repository at this point in the history