Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

fail when set position RIGHT with layout contains RecyclerView, but position LEFT is ok #63

Open
nhatnd20 opened this issue Mar 31, 2018 · 3 comments

Comments

@nhatnd20
Copy link

No description provided.

@nhatnd20 nhatnd20 changed the title fail when set position RIGHT with layout contain RecyclerView, but position LEFT is ok fail when set position RIGHT with layout contains RecyclerView, but position LEFT is ok Mar 31, 2018
@haliyari
Copy link

i have the same problem

@boidmy
Copy link

boidmy commented Oct 27, 2020

If the return value of the checkTouchSlop return function is set to true in the ViewDragHelper library class, it works, but I'm not sure what the return function means. Source line 1198
Please understand that I wrote it with a translator.

@ecogeo
Copy link

ecogeo commented Feb 16, 2022

@boidmy You saved me. Thank you.

I modified code in "private boolean checkTouchSlop(View child, float dx, float dy)" method.

from
} else if (checkHorizontal && 3 * temp_dy < dx) {

to
} else if (checkHorizontal) {

And now, it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants