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...