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

Get index path or scroll position of first visible item in list #1544

Closed
wants to merge 1 commit into from

Conversation

lorixx
Copy link
Contributor

@lorixx lorixx commented Nov 8, 2021

Summary:
Refactored and added functions to IGListAdapter for getting index path or scroll position of first visible item in list.

This makes it possible to see which item is the current first visible item scrolled to in the list, and determine how far it is scrolled into (analogous to additionalOffset in scrollToObject:).

Differential Revision: D32196398

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D32196398

lorixx pushed a commit to lorixx/IGListKit that referenced this pull request Nov 9, 2021
…agram#1544)

Summary:
Pull Request resolved: Instagram#1544

Refactored and added functions to IGListAdapter for getting index path or scroll position of first visible item in list.

This makes it possible to see which item is the current first visible item scrolled to in the list, and determine how far it is scrolled into (analogous to additionalOffset in scrollToObject:).

Reviewed By: lorixx

Differential Revision: D32196398

fbshipit-source-id: 1776c00d343c7c4a57432d2f3083f403ca68ae53
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D32196398

…agram#1544)

Summary:
Pull Request resolved: Instagram#1544

Refactored and added functions to IGListAdapter for getting index path or scroll position of first visible item in list.

This makes it possible to see which item is the current first visible item scrolled to in the list, and determine how far it is scrolled into (analogous to additionalOffset in scrollToObject:).

Reviewed By: lorixx

Differential Revision: D32196398

fbshipit-source-id: 06abc397a6863025c57d6494428f6535eab6c356
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D32196398

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9870555.

cntrump pushed a commit to cntrump/IGListKit that referenced this pull request Dec 7, 2021
…agram#1544)

Summary:
Pull Request resolved: Instagram#1544

Refactored and added functions to IGListAdapter for getting index path or scroll position of first visible item in list.

This makes it possible to see which item is the current first visible item scrolled to in the list, and determine how far it is scrolled into (analogous to additionalOffset in scrollToObject:).

Reviewed By: lorixx

Differential Revision: D32196398

fbshipit-source-id: d809d5f96bb4e1d95055dbebe4e55c1a428a40ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants