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

CirclePageIndicator at the last item go to empty before jump to the first item #4

Open
vsay01 opened this issue Jan 22, 2016 · 1 comment

Comments

@vsay01
Copy link

vsay01 commented Jan 22, 2016

Hi,

Great library,

I setup the demo sample, and I notice that for LinePageIndicator when transition from first to last or last to first it didn't jump to the empty spot.

However, for the CirclePageIndicator when transition from first to last or last to first it jumps to the empty spot first before move to fist or last.

Is there anyway we can make it smooth without go to empty spot for CirclePageIndicator?

Thank

@cp140521
Copy link

cp140521 commented Jul 6, 2017

Can be amended to solve, modify the CirclePageIndicator onDraw () method in the 272 lines of code:
if (!mSnap) {
if(mCurrentPage != count - 1) {
cx += mPageOffset * threeRadius;
}
}

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

No branches or pull requests

2 participants