From 6e3ce3806c1df2efcb5a184e67f0e507e36a7088 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Dec 2012 17:48:02 +0400 Subject: [PATCH] added basic pinch actions, still preliminary... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 5a6d9021..eff24576 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1232,7 +1232,11 @@ function setupEvents(){ swipeLeft: ImageGrid.nextImage, swipeRight: ImageGrid.prevImage, swipeUp: ImageGrid.shiftImageUp, - swipeDown: ImageGrid.shiftImageDown + swipeDown: ImageGrid.shiftImageDown, + + // XXX do gradual zooming... + pinchIn: ImageGrid.scaleContainerDown, + pinchOut: ImageGrid.scaleContainerUp }) // dragging... // XXX make this work seamlessly with touchSwipe...