-
Notifications
You must be signed in to change notification settings - Fork 47.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[react-events] Press responder simplification
* Remove 'pressRetentionOffset' so we don't have to perform layout measurements during moves. * Maintain the pressed state while a pointer is down and moving, even if it moves outside the target. * Determine whether to call 'onPress' based on whether the pointer was released over the target. This aligns more closely with how the web natively deals with pointers and simplifies the responder. We only need to call getBoundingClientRect for touch pointers. Further revisions could be made to avoid target capturing for touch pointers with PointerEvents, which would leave the gBCR call only for the fallback TouchEvents.
- Loading branch information
Showing
3 changed files
with
70 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.