InfiniteCycleViewPager icon indicating copy to clipboard operation
InfiniteCycleViewPager copied to clipboard

How to stop click events from happening fragments other than the current one in focus?

Open Vidxyz opened this issue 8 years ago • 2 comments

First of all thanks for this amazing library. However, I noticed that due to parts of the left and right fragment being visible apart from the one currently in focus, some of my click listeners on elements on these side fragments get fired if the user accidentally touches the right thing.

Is there any way to disable interaction with fragments that are not currently in focus so as to avoid this issue?

Thanks

Vidxyz avatar Nov 24 '16 14:11 Vidxyz

I made workaround for alike issue by putting a transparent empty layout and setOnclick listener to do nothing :) tell me if this solves your issue.

mhussien86 avatar Nov 30 '16 11:11 mhussien86

Could you elaborate on your work around? I'm not quite sure I understand fully how to implement what you said. Thanks :)

Vidxyz avatar Nov 30 '16 16:11 Vidxyz