Commit 6825dbb
authored
[iOS] Restore scroll view behavior on gesture unbind (#3931)
## Description
The new architecture comes with a new fancy tool - view recycling. After
a view is no longer used, instead of deallocating it, it's restored to a
"pristine" state and moved to a recycling pool. The restoration covers
only the properties that may have been modified by React in the default
implementation, and `delaysContentTouches` is not one of them.
By setting it to `YES` on a ScrollView and never resetting it back, we
may cause an unrelated scroll view to appear with that field set.
This PR resets the field when the gesture unbinds from view.
## Test plan
Remove native gesture from the scroll view, verify that the touches are
no longer delayed.1 parent 7a4f774 commit 6825dbb
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
| |||
0 commit comments