Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: use IsPrimary() for touch pointer isPrimary instead of hardcoded pointer ID check",
"packageName": "react-native-windows",
"email": "gordomacmaster@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ void CompositionEventHandler::onPointerPressed(

UpdateActiveTouch(activeTouch, ptScaled, ptLocal);

activeTouch.isPrimary = pointerId == 1;
activeTouch.isPrimary = pointerPoint.Properties().IsPrimary();
// Map the Windows pointer ID to a small identifier (0–19) safe for use as a JS array index.
// Windows touch IDs can be arbitrarily large (e.g. 2233), which causes React Native to warn
// and corrupts touch state, leaving Pressables stuck after a scroll.
Expand Down
Loading