-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures pointer event is updated when leaving bounds of React root (#…
…10407) * Ensures pointer event is updated when leaving bounds of React root Previously, if we did not find a valid React target, we would not update the pointer data, resulting in firing the `onTouchEnd` with the last data used while the pointer was still inside the React root. This change ensures that, while the pointer is down (i.e., we have a captured pointer in the React root), we continue to update the pointer data and also emit move events. The viewX / viewY values of the pointer will be relative to the declared root view. Fixes #10406 * Change files
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/react-native-windows-78d2b45c-6011-4a3d-a20b-6914e08531d9.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Ensures pointer event is updated when leaving bounds of React root", | ||
"packageName": "react-native-windows", | ||
"email": "erozell@outlook.com", | ||
"dependentChangeType": "patch" | ||
} |
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