Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad comparison in RCTScrollViewComponentView RTL (#39030)
Summary: Pull Request resolved: #39030 D29164056 fixed `scrollTo` coordinate space in RTL, but D38499666 regressed it by adding a comparison before the RTL conversion happens. This makes `scrollTo` no-op if we are scrolling from the beginning to the end of the list, since the end of the list is `x: 0` in cartesian coordinates, and the start of the list is `x: 0` in flow-relative coordinates. Do coordinate conversion before the early exit check. Changelog: [iOS][Fixed] - Fix bad comparison in RCTScrollViewComponentView RTL Reviewed By: rshest Differential Revision: D48378414 fbshipit-source-id: 14b0b9bb3b22828c290bbbc93b907d8c0e264995
- Loading branch information