added basic pinch actions, still preliminary...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-12-19 17:48:02 +04:00
parent 1f2132c2f6
commit 6e3ce3806c

View File

@ -1232,7 +1232,11 @@ function setupEvents(){
swipeLeft: ImageGrid.nextImage, swipeLeft: ImageGrid.nextImage,
swipeRight: ImageGrid.prevImage, swipeRight: ImageGrid.prevImage,
swipeUp: ImageGrid.shiftImageUp, swipeUp: ImageGrid.shiftImageUp,
swipeDown: ImageGrid.shiftImageDown swipeDown: ImageGrid.shiftImageDown,
// XXX do gradual zooming...
pinchIn: ImageGrid.scaleContainerDown,
pinchOut: ImageGrid.scaleContainerUp
}) })
// dragging... // dragging...
// XXX make this work seamlessly with touchSwipe... // XXX make this work seamlessly with touchSwipe...