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

Swipe slowly you can found this "bug" #6

Open
conscious01 opened this issue Oct 10, 2017 · 2 comments
Open

Swipe slowly you can found this "bug" #6

conscious01 opened this issue Oct 10, 2017 · 2 comments

Comments

@conscious01
Copy link

actually this found by Test coworker,
looking forward the solution

device-2017-10-10-115822

@liyuwhy
Copy link

liyuwhy commented Aug 1, 2019

you can set scroll limit on the scroll. like this
``
if (Math.abs(velocity) > minimumVelocity) {
scroller.fling(0, scrollOffsetY, 0, velocity, 0, 0, minFlingY, maxFlingY);
scroller.setFinalY(
scroller.getFinalY() + computeDistanceToEndPoint(scroller.getFinalY() % mItemHeight));
} else {

if( scrollOffsetY > maxFlingy){
scrollOffsetY = maxFlingY;
}

if(scrollOffsetY < minFlingY){
scrollOffsetY = minFlingy;
}
scroller.startScroll(0, scrollOffsetY, 0, computeDistanceToEndPoint(scrollOffsetY % mItemHeight));
}

@webianks webianks pinned this issue Aug 1, 2019
@nanduk667
Copy link

happens when you scroll past a point too, to the top and bottom, any fix available for this?
Found no other library which lets you change the bg colour of the selected item.

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

3 participants