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

Cannot move around a zoomed image in 1.2.2 when it is placed inside ViewPager #86

Closed
alvarolb opened this issue Oct 5, 2013 · 15 comments
Labels
Milestone

Comments

@alvarolb
Copy link

alvarolb commented Oct 5, 2013

In the latest version 1.2.2 the PhotoView behavior when it is placed inside a ViewPager is different from 1.2.1. In the previous version you can easily perform an image zoom and move around the image. In this new version, it is hard to move to the image bounds as the ViewPager is intercepting touch events and tries to switch page instead of moving inside zoomed image.

@ghost ghost assigned smarek Oct 5, 2013
@smarek
Copy link
Contributor

smarek commented Oct 5, 2013

Hi @alvarolb, can you please test sample application from 1.2.2 (from current dev branch) ? There is ViewPager sample, just test that the issue is there too, and that it isn't specific to your application.
I've tested ViewPager works, and on my devices everything looks fine.

@alvarolb
Copy link
Author

alvarolb commented Oct 5, 2013

Hi @smarek I have tested the dev branch application sample and the problem is still there. It is easy to reproduce the issue, simply open ViewPager Sample, make a big zoom in the first image, and try to drag the zoomed image to left. Instead of moving image to left, the view pager switch the page to the next view. In the previous version 1.2.1 (available from play store) the image is dragged to left, and the view pager switch the view only when there is no more image available. I do not know if I am explaining it fine.

I am running Android 4.3

@smarek
Copy link
Contributor

smarek commented Oct 5, 2013

Oh, now I see it. I'll look into it, and possibly release mixup on github maven repository.

Hi @smarek I have tested the dev branch application sample and the problem is still there. It is easy to reproduce the issue, simply open ViewPager Sample, make a big zoom in the first image, and try to drag the zoomed image to left. Instead of moving image to left, the view pager switch the page to the next view. In the previous version 1.2.1 (available from play store) the image is dragged to left, and the view pager switch the view only when there is no more image available. I do not know if I am explaining it fine.

I am running Android 4.3


Reply to this email directly or view it on GitHub.

@alvarolb
Copy link
Author

alvarolb commented Oct 5, 2013

Thanks for your support @smarek 👍

smarek added a commit that referenced this issue Oct 8, 2013
@smarek
Copy link
Contributor

smarek commented Oct 8, 2013

@alvarolb can i ask you for testing?

@alvarolb
Copy link
Author

alvarolb commented Oct 8, 2013

yes @smarek, of course. Tell me what to do.

@smarek
Copy link
Contributor

smarek commented Oct 8, 2013

test using current dev branch, there is 15134e7 commit with possible fix. I don't have devices now by me.

@alvarolb
Copy link
Author

alvarolb commented Oct 8, 2013

Hi @smarek I have tested with the dev branch and the sample application, and now the library seems to work like before! thanks! Does this little fix will be merged with maven version? good work!

@smarek
Copy link
Contributor

smarek commented Oct 8, 2013

It will be released in 1.2.3, which is targeted on the end of week, I will release is it in maven snaphshot on github maven (see https://github.com/chrisbanes/PhotoView/tree/maven)

@alvarolb
Copy link
Author

alvarolb commented Oct 8, 2013

Perfect @smarek I am using already this maven snapshot, so I will wait for the next release ;)

@smarek
Copy link
Contributor

smarek commented Oct 8, 2013

Ok, the 1.2.3-SNAPSHOT is up, you can hook on it.

@smarek smarek closed this as completed Oct 8, 2013
@laurencedawson
Copy link
Contributor

Just grabbed the 1.2.3 snapshot and can confirm this has fixed the issue. Thanks for the update @smarek.

@DHuckaby
Copy link

@smarek Any update on when 1.2.3 will be released?

@smarek
Copy link
Contributor

smarek commented Apr 21, 2014

@DHuckaby not really, I've submitted it to Chrisfew weeks ago, he probably haven't got time to release it yet. You can probably use the snapshot provided in github maven branch until then.

@DHuckaby
Copy link

@smarek The currently snapshot works great. Can you reach back out to him please? I would prefer to reference a released version for a production build.

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

No branches or pull requests

4 participants