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

Stop the gesture when interacting with a pager adapter #86

Open
abhirup-patra opened this issue Mar 10, 2021 · 4 comments
Open

Stop the gesture when interacting with a pager adapter #86

abhirup-patra opened this issue Mar 10, 2021 · 4 comments

Comments

@abhirup-patra
Copy link

abhirup-patra commented Mar 10, 2021

How can i stop the gesture from working when interacting with a pager adapter or even a horizontal recycler view

@bogdandonduk
Copy link

One possible solution is locking and unlocking SlidrInterface within OnTouchListener (lock on ACTION_DOWN and unlock on ACTION_CANCEL) of adapter item's view (ViewHolder's or Fragment's root view).

@abhirup-patra
Copy link
Author

abhirup-patra commented Mar 12, 2021

One possible solution is locking and unlocking SlidrInterface within OnTouchListener (lock on ACTION_DOWN and unlock on ACTION_CANCEL) of adapter item's view (ViewHolder's or Fragment's root view).

this doesnt seem to work. The gesture still happens to work

@bogdandonduk
Copy link

It worked for me. You may show your code.

@abhirup-patra
Copy link
Author

abhirup-patra commented Mar 12, 2021

It worked for me. You may show your code.

Ok it worked. but for the first time it doesnt unlock. only when i have clicked outside the pager once then i am able to use to gesture. Is there a way where its immediate?

Edit: It worked. I had to use MOVE instead of ACTION DOWN

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

2 participants