I want a pinch to Zoom function for an image. I want it to zoom in the area where the fingers are.
My index is only
<div id=wrapper style=-webkit-transform: translate3d(0,0,0);overflow: hidden;>
</div>
And my script for zooming and scrolling is similar with this example. I have made a few changes to fit with my project
My problem is in
case 'transform':
rotation = last_rotation + ev.gesture.rotation;
scale = Math.max(1, Math.min(last_scale * ev.gesture.scale, 10));
break;
How can I change it so that it doesn't zoom into the center of the picture but at place where the first finger have touch the display?
Sorry for my bad english :)