Commit 042d319
authored
Fix
## Description
In facebook/react-native#43464 `clipChildren`
started being set to false on scrollviews, which caused
`isViewClippingChildren` to return false. Because of this, gesture
handler would traverse the children of the scrollview even when touch
was out of bounds:
https://github.com/user-attachments/assets/6d108b55-6e06-4202-bc77-9d9dd2825456
This PR adds special cases for scroll views that have `overflow` set to
`visible` so that scrolling works on all of its children.
## Test plan
Test components sample on FabricExample appScrollView intercepting touches through out-of-bounds children (#3017)1 parent e394532 commit 042d319
File tree
1 file changed
+8
-7
lines changed- android/src/main/java/com/swmansion/gesturehandler/react
1 file changed
+8
-7
lines changedLines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
0 commit comments