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

viewpager support #41

Open
gbrbks opened this issue Nov 14, 2012 · 6 comments
Open

viewpager support #41

gbrbks opened this issue Nov 14, 2012 · 6 comments

Comments

@gbrbks
Copy link

gbrbks commented Nov 14, 2012

Hello!

Everything is working charmly but i intend to extend the functionality.
I want to implement a function where the image is draggable and zoomable in a viewpager, viewpager is not pageable just when the edge of the image is on the screen (eg: fullscreen image or left or right side). The isZoomed function is working properly, so the viewpager control is the issue only. Any advice?

Thanks in advance!

@trietbui85
Copy link

Yes I wish to have viewpager support too.

@TheNetStriker
Copy link

+1

@mattster09
Copy link

+2

@moskvin
Copy link

moskvin commented Mar 26, 2013

+1

1 similar comment
@longdw
Copy link

longdw commented Mar 16, 2014

+1

@mirmilad
Copy link

It can be fixed easily by adding these line of codes at the end of "public boolean onTouch(View v, MotionEvent event)" method in "GestureImageViewTouchListener" class.

if(canDragX || canDragY)
v.getParent().requestDisallowInterceptTouchEvent(true);
else
v.getParent().requestDisallowInterceptTouchEvent(false);

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

7 participants