Commit 4218d51
Filter non-primary button from onPress/onLongPress in responder path
Match react-native-windows approach: add _isDefaultPressButton() helper
and use it in all three press paths (onClick, LONG_PRESS_DETECTED, and
RESPONDER_RELEASE). The button property is already forwarded from native
macOS touch events via BaseTouch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a750192 commit 4218d51
File tree
1 file changed
+23
-4
lines changed- packages/react-native/Libraries/Pressability
1 file changed
+23
-4
lines changedLines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
413 | 423 | | |
414 | 424 | | |
415 | 425 | | |
| |||
556 | 566 | | |
557 | 567 | | |
558 | 568 | | |
559 | | - | |
560 | | - | |
| 569 | + | |
561 | 570 | | |
562 | 571 | | |
563 | 572 | | |
| |||
799 | 808 | | |
800 | 809 | | |
801 | 810 | | |
802 | | - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
803 | 817 | | |
804 | 818 | | |
805 | 819 | | |
| |||
820 | 834 | | |
821 | 835 | | |
822 | 836 | | |
823 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
824 | 843 | | |
825 | 844 | | |
826 | 845 | | |
| |||
0 commit comments