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

[Pager] Skip intermediate pages during long scroll #372

Merged
merged 20 commits into from
Apr 30, 2021
Merged

Conversation

chrisbanes
Copy link
Contributor

@chrisbanes chrisbanes commented Apr 26, 2021

Breaking API changes:

  • offscreenLimit has now moved to PagerState

Fixes #368

@chrisbanes chrisbanes marked this pull request as ready for review April 29, 2021 07:43
@chrisbanes chrisbanes requested a review from nickbutcher April 29, 2021 08:14
@chrisbanes chrisbanes enabled auto-merge (squash) April 29, 2021 09:25
Tiny micro optimization
Copy link
Collaborator

@nickbutcher nickbutcher left a comment

Choose a reason for hiding this comment

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

Some naming questions and requests for comments but impl LGTM.

@chrisbanes chrisbanes merged commit 2ba01f9 into main Apr 30, 2021
@chrisbanes chrisbanes deleted the cb/pager-scroll branch April 30, 2021 10:05
Syer10 pushed a commit to Syer10/accompanist that referenced this pull request May 4, 2021
* Migrate Pager layout info to PagerState

* Migrate currentLayoutPage

* Fix items flashing in

* Start implementing skipped scrolling

* Fix tests compile

* Tidy up animation functions

* Working skipping animateScrollToPage()

* Doc fixes

* Turn off DebugLog

* Tidy up infinite constraints test

* Tidy up VerticalPagerTest

* Increase tolerance for VerticalPagerTest

* Re-add `pageOffset` to [animate]scrollToPage

(cherry picked from commit 2ba01f9)

# Conflicts:
#	pager/api/current.api
#	pager/src/main/java/com/google/accompanist/pager/Pager.kt
#	pager/src/main/java/com/google/accompanist/pager/PagerState.kt
#	sample/src/main/java/com/google/accompanist/sample/pager/HorizontalPagerBasicSample.kt
#	sample/src/main/java/com/google/accompanist/sample/pager/HorizontalPagerTransitionSample.kt
#	sample/src/main/java/com/google/accompanist/sample/pager/HorizontalPagerWithIndicatorSample.kt
#	sample/src/main/java/com/google/accompanist/sample/pager/VerticalPagerBasicSample.kt
#	sample/src/main/java/com/google/accompanist/sample/pager/VerticalPagerWithIndicatorSample.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ViewPager-like smoke & mirrors animateScrollToPage
2 participants