-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
track previous contentOffset to avoid duplicate calls
Summary: - there was a bug when `contentOffset` was set to {x:0, y:0} and there were items lazy loaded in with prop changes- the View would consistently scroll back to the top after loading in new items - to avoid this, we store the offset value when it's first set, and only run the `scrollTo` logic then Changelog: [Internal][Fixed] - Fix contentOffset forcing scroll to top behavior Reviewed By: fkgozali, mdvacca Differential Revision: D42089871 fbshipit-source-id: 3968d98341728a45bec28e8783c9977e91dd4d2c
- Loading branch information
1 parent
09ad0cc
commit 14330b5
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters