Skip to content

Disable snap to ViewHolder #202

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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