mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
92da2c1779
Summary: Normally, UIScrollView adjust `contentOffset` inside `setContentSize` to prevent over-scroll. In most cases, it works fine but in a case when the ScrollView is in the middle of user interaction the over-scroll is perfectly acceptable. So, to work around this issue we disable `setContentOffset` when we update `contentSize` and the gesture interaction is in progress. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D26001133 fbshipit-source-id: 19b67289b2c142facd4f516a740180c87f90bc2d