Skip to content

[0.81] Fix touch event handling, improve reliability, and optimize performance#16050

Merged
acoates-ms merged 5 commits intomicrosoft:0.81-stablefrom
acoates-ms:cherry81
Apr 25, 2026
Merged

[0.81] Fix touch event handling, improve reliability, and optimize performance#16050
acoates-ms merged 5 commits intomicrosoft:0.81-stablefrom
acoates-ms:cherry81

Conversation

@acoates-ms
Copy link
Copy Markdown
Contributor

@acoates-ms acoates-ms commented Apr 24, 2026

Description

Port #15988, #16003, #16048 #16051 to 0.81

iamAbhi-916 and others added 5 commits April 24, 2026 12:10
* Fix ScrollView keyboard scroll drift on long key press

* Change files
…soft#15990) (microsoft#16003)

* Fix multiline TextInput crash from TxDrawD2D reentrancy

* Change files
…ce (microsoft#16048)

* Fix touch event handling, improve reliability, and optimize performance

- Fix touch/pen pointer device type detection and screenPoint coordinates
- Fix touch cancel to include all active touches per W3C spec
- Synthesize touch-cancel for stale pointers and releases outside views
- Fix TextInput pointer message translation (use mouse-style messages for RichEdit)
- Fix ShouldSubmit modifier key checks (altDown, ctrlKey)
- Add null safety to RootComponentView() for island teardown
- Fix Pressability hover timeout and tabIndex focusable mapping
- Cache event path to root to avoid repeated tree walks
- Use unordered_set for pointer capture tracking
- Eliminate O(n²) hit testing by caching visual children
- Skip snap scroll reconfiguration when unchanged
- Improve TextInput reliability: thread-safe loading, null safety, use-after-free fix
- Fix Timing data race and remove duplicate image error allocation
- Use unordered_set for animated node and component registry lookups
- Clean up dead code in ScrollView and simplify Modal event emitter init

* formatting

* Change files

* Update react-native-windows-cd995d7a-4df8-4c73-9b1b-c57b3b886cc6.json

* Touch target

* addressed pr comments

* Crash on invalid index

* revert until rn core pr

* Update react-native-windows-cd995d7a-4df8-4c73-9b1b-c57b3b886cc6.json

* format

* snapshots

---------

Co-authored-by: Gordon MacMaster <31481849+gmacmaster@users.noreply.github.com>
Co-authored-by: Gordon MacMaster <gordomacmaster@gmail.com>
* Some fixes for rounded borders

* Change files

* Image snaphots
@acoates-ms acoates-ms changed the title Cherry81 [0.81] Fix touch event handling, improve reliability, and optimize performance Apr 25, 2026
@acoates-ms acoates-ms marked this pull request as ready for review April 25, 2026 23:55
@acoates-ms acoates-ms requested a review from a team as a code owner April 25, 2026 23:55
@acoates-ms acoates-ms merged commit 38021b8 into microsoft:0.81-stable Apr 25, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants