Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (zoomscale)
Viewing all articles
Browse latest Browse all 12

Double-tap to zoom Scrollview at point of doubletap

$
0
0

Hi,

I have a ScrollView that contains an ImageView.

I'm attempting to mimick the feature in the Photos app on iOS devices whereby a photo zooms to the point on the photo where the user double-tapped. E.g. if you double tap in the top right hand corner, it will zoom in on that corner.

I have a solution working using ScrollView.zoomScale to zoom in and ScrollView.scrollTo() to pan to the right position on screen, but it's very clumsy, first zooming to the center of the image and then panning… it's not ideal.

Is there a way of zooming in on a particular part of a ScrollView in 1 motion? Maybe by specifying co-ordinates so that it zooms in on that area in a more natural way.


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images