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

Disable snap to ViewHolder #202

Open
ghost opened this issue Nov 15, 2020 · 1 comment
Open

Disable snap to ViewHolder #202

ghost opened this issue Nov 15, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 15, 2020

I'm using ItemTouchHelper to drag the first item of a discrete scroll view all the way to the end. When the discrete scroll view is long enough that it goes beyond the width of the screen and I perform the previously mentioned action, ItemTouchHelper.Callback's interpolateOutOfBoundsScroll is triggered. In some occasions, this results to the discrete scroll view scrolling too fast and launching in the opposite direction, off the screen, breaking itself.

With a regular recycler view, this problem does not occur. I suspect that the issue may lie in the snapping of the view holders. Is there a way to disable it, so the scrolling behavior would be similar to that of a regular recycler view when an item is dragged, and reenable it when the drag is finished?

preview: https://streamable.com/edxxzq

@Sroobik
Copy link

Sroobik commented Jul 5, 2021

@nocturne9op2 I have the same problem. Did you manage to find a solution?

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

1 participant