From 02560c9dce7cdf289337cb955e7ff774e0279247 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Dec 2012 18:58:18 +0400 Subject: [PATCH] more tweeks to pinching... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index ef4a9828..a7d40755 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1234,12 +1234,14 @@ function setupEvents(){ swipeUp: ImageGrid.shiftImageUp, swipeDown: ImageGrid.shiftImageDown, - - // XXX do gradual zooming... - //pinchIn: ImageGrid.scaleContainerDown, - //pinchOut: ImageGrid.scaleContainerUp, + }) + // XXX pinch: do gradual zooming... + $('.viewer') + .swipe({ + pinchIn: ImageGrid.scaleContainerDown, + pinchOut: ImageGrid.scaleContainerUp, - fingers: 'all' + fingers: '2' }) // dragging...