pinch in and out on elements on handheld devices.
Install with component(1):
$ component install component/pinch
pinchimgdotstyleleft = ex + 'px';dotstyletop = ey + 'px';dotstyle'-webkit-transform' = 'scale(' + escale + ')';;
Pinch with the element
el and callback function
pinchimgvar midpoint = x: ex y: ey ;var scale = escale;;
The event object
e is augmented with following keys:
x: the x coordinate of the midpoint between your two fingers
y: the y coordinate of the midpoint between your two fingers
scale: the relative distance between your two fingers starting at 1.
e.rotatesupport for android