natuanorg / android-zoom-view

Automatically exported from code.google.com/p/android-zoom-view
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

View changes its position slightly at zoomended. #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 virajdas...@gmail.com on 12 Jun 2013 at 12:35

Attachments:

GoogleCodeExporter commented 8 years ago
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 virajdas...@gmail.com on 13 Jun 2013 at 6:06

GoogleCodeExporter commented 8 years ago
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 karooo...@gmail.com on 25 Jun 2013 at 12:06

GoogleCodeExporter commented 8 years ago
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 virajdas...@gmail.com on 25 Jun 2013 at 12:23