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

Enable horizontal scroll actions. #311

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

gabreho
Copy link
Collaborator

@gabreho gabreho commented Aug 5, 2021

Goal

Currently scrolling to an item using ListAction doesn't work with horizontal orientation because ScrollPosition.Position doesn't cover all available UIKit options.

Implementation Details

We return top, bottom and centeredVerically for vertical layouts and left, right and centeredHorizontally for horizontal.

@gabreho gabreho force-pushed the gabreho/horizontal-scroll-actions branch from 89127b7 to afc3d3c Compare August 5, 2021 20:38
@kyleve kyleve enabled auto-merge August 5, 2021 22:14
@kyleve kyleve merged commit 0ac8306 into square:main Aug 5, 2021
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.

2 participants