yarolegovich/DiscreteScrollView

Dragging more than one page at a time

Open

#70 opened on Dec 13, 2017

View on GitHub
 (8 comments) (3 reactions) (0 assignees)Java (5,728 stars) (768 forks)batch import
feature requesthelp wanted

Description

It appears that DiscreteScrollLayoutManager.calculateAllowedScrollIn() restricts the amount of pages that may be scrolled in such a way that the user cannot drag beyond one page to the left or right of the current selection.

It would seem to me that by enabling setSlideOnFling(true), the user should be able drag for instance from page 0 to page 3 in a single gesture (without flinging).

What are your thoughts on this? With some debugging I found that perhaps the place to look is either in the aforementioned method, or perhaps after it's invoked in DiscreteScrollLayoutManager.scrollBy()?

Contributor guide