SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Fix scrollView state contentOffset not being in sync with scrollView contentOffset

Summary:
Changelog: [Internal]

# Problem
`scrollView.state.contentOffset` was not in sync with actual `contentOffset` in case `contentOffset` is changed programatically.

# Solution
Add a flag `_isUserTriggeredScrolling` that indicates whether the current scroll is triggered by user or not. In case it isn't, update state.

Reviewed By: shergin

Differential Revision: D20098161

fbshipit-source-id: 021d916e7a45a24095a47bb8f84d1102226b672a
S
Samuel Susla committed
cd0e4ecd7ba5e4716ad329b197d555c72a1e153e
Parent: 507379f
Committed by Facebook Github Bot <[email protected]> on 3/10/2020, 7:47:20 PM