Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with scrollTo method in ScrollViews to set actual scroll po…
…sition Summary: The `scrollTo` method in ScrollViews are using the `(x, y)` position they got from upperstream to scroll, and to set the state for Fabric. This diff fixes an edge case where the scroll result is not ended up to `(x, y)`. For example, if we are going to scroll to the last item in the list, the item may not scroll to the `(x, y)` position, but stay at the end position of the view. - Change `scrollTo` method to use the actual `scrollX` and `scrollY` position after scrolling to set current state. Changelog: [Android][Fixed] - scrollTo API in ScrollView will check the actual scroll position before setting the scroll state Reviewed By: JoshuaGross Differential Revision: D31492685 fbshipit-source-id: e5513fb735ea68c5014b5c47fadffe461cad5c94
- Loading branch information