Slidr icon indicating copy to clipboard operation
Slidr copied to clipboard

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

Open nhatnd20 opened this issue 6 years ago • 3 comments

nhatnd20 avatar Mar 31 '18 12:03 nhatnd20

i have the same problem

haliyari avatar Aug 16 '18 05:08 haliyari

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.

boidmy avatar Oct 27 '20 05:10 boidmy

@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.

ecogeo avatar Feb 16 '22 06:02 ecogeo