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

View changes its position slightly at zoomended. #4

Open
GoogleCodeExporter opened this issue Mar 31, 2016 · 3 comments
Open

View changes its position slightly at zoomended. #4

GoogleCodeExporter opened this issue Mar 31, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

First of all..Thank you for this amazing and efficient library.

I have attached ZoomView class with little modification.
I wanted to catch all the methods from listener and existing implementation was 
returning them but sometimes zoom ended was not detected.So i have merged 
single and double touch events in one and now it is working like a charm..

The only problem is not every time but most of the time view changes its little 
position on zoom ended time.

Can you help me with this? 

Original issue reported on code.google.com by [email protected] on 12 Jun 2013 at 12:35

Attachments:

@GoogleCodeExporter
Copy link
Author

Actually i have tried with the original class also..
Even in that after zoom finish View translates to some other position  
(Slightly up or down)


Original comment by [email protected] on 13 Jun 2013 at 6:06

@GoogleCodeExporter
Copy link
Author

well i think i might know what's your issue:

you probably zoom out a little less then maximum (like about 102% of original 
size) due to imprecise gesture (which most users do because they are lazy :P).

because technically it's not totally zoomed out, the onZoomedOut() is not 
called the view inside has some space for scrolling (and probably, which you 
didn't mention, it's a bit bigger).

perhaps good idea would be to add some margin so it does some automatically 
zooming out to original size when it's close enough...

Original comment by [email protected] on 25 Jun 2013 at 12:06

@GoogleCodeExporter
Copy link
Author

Thank you for the suggestion.I am going to try this.But actually scrolling is 
working fine at view > original size.
The problem is when we start zoom and release both fingers roughly and fast at 
any moment(At zoom in or at zoom out).At that time sometimes view moves 
slightly..
Means at slight different position instead of fingers up position..
Otherwise panning is working properly after zooming.


Original comment by [email protected] on 25 Jun 2013 at 12:23

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

No branches or pull requests

1 participant