Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update scrollToIndex center-alignment #864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christriants
Copy link

@christriants christriants commented Oct 27, 2024

With the assumption that the current-behavior is not intended, I opened this PR to correct the align: center behavior of scrollToIndex to align the scroll item's center, not its top, with the center of the list.

Video of issue:
https://github.com/user-attachments/assets/7b2445d7-e08e-4eee-aa97-3e454409214c

Video of fix:
https://github.com/user-attachments/assets/607a619e-fc24-4fb4-8c9a-18ec35c917af

@christriants
Copy link
Author

Hi, @piecyk @kouts. Mind taking a look at this change, if you get a moment? I hope this is helpful, but I am not sure if the current behavior is actually intended or not.

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.

scrollToIndex center - incorrect align
1 participant