Skip to content

Commit

Permalink
fix: add pointerEvents: ‘box-none’ to ItemLayout (#733)
Browse files Browse the repository at this point in the history
<!-- 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 -->
  • Loading branch information
dohooo authored Nov 29, 2024
1 parent 9c0589b commit 3040863
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-needles-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-native-reanimated-carousel": patch
---

Add pointerEvents: ‘box-none’ to ItemLayout component to allow touches for children components outside item boundaries
1 change: 1 addition & 0 deletions src/components/ItemLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const ItemLayout: React.FC<{
width: width || "100%",
height: height || "100%",
position: "absolute",
pointerEvents: "box-none",
},
animatedStyle,
]}
Expand Down

0 comments on commit 3040863

Please sign in to comment.