Skip to content

Conversation

@chiuam
Copy link

@chiuam chiuam commented Apr 11, 2023

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

A client downstream reported a bug in Flatlist where the clip view does not get scrolled to the offset that's being passed in when in RTL mode. Turns out this issue only repros when animation is enabled, #725 which was added a while back. Since scrollToPoint is not animatable, let's call it alongside setBoundsOrigin so that the animation is still present.

Test Plan

Verified downstream

@chiuam chiuam requested a review from a team as a code owner April 11, 2023 22:25
Copy link
Collaborator

@Saadnajmi Saadnajmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps after letting it "bake" for a bit, but we probably want this change in main and 0.71-stable too?

@Saadnajmi
Copy link
Collaborator

Oh yeah... also add diff tags plz

@chiuam
Copy link
Author

chiuam commented Apr 12, 2023

Perhaps after letting it "bake" for a bit, but we probably want this change in main and 0.71-stable too?

Agreed, I think we settled on holding off on cherry picking the change until client verifies the fix.

Oh yeah... also add diff tags plz

No diff tags needed as it's already inside a macOS macro. Added a comment though

@chiuam chiuam merged commit 4126fbe into 0.68-stable Apr 12, 2023
@chiuam chiuam deleted the scroll-animation-fix-68 branch April 12, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants