Skip to content

Commit 3040863

Browse files
authored
fix: add pointerEvents: ‘box-none’ to ItemLayout (#733)
<!-- Is this PR related to an open issue? --> <!-- GitHub: Fixes #0, Relates to #1, etc. --> ### Description <!-- Summary of changes and why if no corresponding issue --> ### Review - [ ] I self-reviewed this PR <!-- Call out any changes that you'd like people to review or feedback on --> ### Testing - [ ] I added/updated tests - [ ] I manually tested <!-- Describe any manual testing -->
1 parent 9c0589b commit 3040863

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/mean-needles-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-reanimated-carousel": patch
3+
---
4+
5+
Add pointerEvents: ‘box-none’ to ItemLayout component to allow touches for children components outside item boundaries

src/components/ItemLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const ItemLayout: React.FC<{
7373
width: width || "100%",
7474
height: height || "100%",
7575
position: "absolute",
76+
pointerEvents: "box-none",
7677
},
7778
animatedStyle,
7879
]}

0 commit comments

Comments
 (0)