Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking while scrolling doesn't invoke the clickListener #26

Open
Ibrahemalbitar opened this issue Feb 9, 2016 · 1 comment
Open

Comments

@Ibrahemalbitar
Copy link

If I click the pager while the scroll is taking place, the pager sometimes fast-scrolls to the next item, and sometimes to the previous one. I have an onClick() event listener on each pager item that should open another activity. I need this listener to keep working even if the pager was clicked during the transition.

Is there a way to implement this?

Note: your demo Android application (Trinea Android demo) shows the undesired behaviour in the “AutoScrollViewPager demo”, but the problem doesn’t occur when we further navigate into the “AutoScrollViewPager demo >ViewPager in ViewPager Demo” page.

@mspmax
Copy link

mspmax commented Jun 5, 2017

You should remove getParent().requestDisallowInterceptTouchEvent(true) in dispatchTouchEvent() method. I guess this is a bug

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

No branches or pull requests

2 participants