Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

54 improve pager performance #57

Merged
merged 3 commits into from
Sep 2, 2018
Merged

Conversation

JonasWanke
Copy link
Owner

Fixes: #54

Description

Most swipes now only require moving one instead of all views.

Checklist

  • Tested on actual devices
  • Commit messages follow conventionalcommits.org

@JonasWanke JonasWanke added this to the v0.1.1 milestone Sep 2, 2018
@JonasWanke JonasWanke self-assigned this Sep 2, 2018
@@ -250,7 +249,7 @@ class CalendarView @JvmOverloads constructor(
pager.adapter = pagerAdapter
pager.listener = object : InfiniteViewPager.OnInfinitePageChangeListener {
override fun onPageScrolled(indicator: Any?, positionOffset: Float, positionOffsetPixels: Int) {
Log.d("Pager", "$indicator, $positionOffset")
// TODO: update startIndicator early
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ This comment contains text that has been defined as forbidden in detekt.

@JonasWanke JonasWanke merged commit a05a331 into dev Sep 2, 2018
@JonasWanke JonasWanke deleted the perf/54-improve-pager-performance branch September 2, 2018 09:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants