Commit 3585881
fix: footer swallowing touch events
iOS: Give the footer its own RCTSurfaceTouchHandler so touches are
hit-tested against the footer's actual AutoLayout frame instead of the
stale Yoga frame in the container's touch handler. Attach/detach is
guarded by a BOOL so prepareForRecycle is a no-op when didMoveToSuperview
has already detached the handler (previously crashed inside
RCTSurfaceTouchHandler on double-detach, reported at
TrueSheetFooterView.mm:111).
Android: Skip JS touch dispatch in ViewController.onInterceptTouchEvent
and onTouchEvent when the touch lands in footer bounds, preventing
double dispatch — the footer's own RootView handles it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 626a04c commit 3585881
4 files changed
Lines changed: 68 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1270 | 1283 | | |
1271 | 1284 | | |
1272 | 1285 | | |
| |||
1293 | 1306 | | |
1294 | 1307 | | |
1295 | 1308 | | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1299 | 1316 | | |
1300 | 1317 | | |
1301 | 1318 | | |
1302 | 1319 | | |
1303 | 1320 | | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1307 | 1327 | | |
1308 | 1328 | | |
1309 | 1329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
48 | 72 | | |
49 | 73 | | |
50 | 74 | | |
| |||
78 | 102 | | |
79 | 103 | | |
80 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
81 | 111 | | |
82 | 112 | | |
83 | 113 | | |
| |||
97 | 127 | | |
98 | 128 | | |
99 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
100 | 133 | | |
101 | 134 | | |
102 | 135 | | |
| |||
0 commit comments