Skip to content

Disable snap to ViewHolder #202

Open
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions