-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Dragging (when zoomed) in ViewPager not working as expected #25
Comments
Same problem here. Would be nice if someone has an idea how to resolve this issue. |
That's because |
Had the same problem, but fixed it with overriding VP canScroll method |
@paperrose can you write an example how you've implemented the canScroll functionality? |
|
@paperrose works lke a charm. thanks ;-) |
Thank you , it works |
Just find a small bug in my code above. In landscape orientation right-to-left swipe doesn't change page |
How to use this approach, I can't find ViewPager class? |
Hi @MonaHammad! The ViewPager is part of the android support library: https://developer.android.com/reference/android/support/v4/view/ViewPager.html It is not related to this PDF library. This issue here is relevant if you show multiple PDFs inside a view pager. Hope this helps. best |
Hi @peshkira |
I have a few pdfs displayed in a view pager. When I zoom one and try to drag to the left/right, the pdf does not pan, but the view pager immediately takes hold of the scrolling and switches to the next page.
If I first drag up/down and then (without lifting my finger) drag left/right, it seems to work as expected.
Any ideas, how I can pass the touch events first to the PDFView and then to the view pager?
The text was updated successfully, but these errors were encountered: