tweeked touch controls and disabled pinching...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-12-19 18:37:17 +04:00
parent 6e3ce3806c
commit 6756b9d789
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Priority work Priority work
[_] 70% Preview II [_] 67% Preview II
[_] BUG: moving the last image from a ribbon up will make the screen jump...
[_] do something sensible when no images are loaded... [_] do something sensible when no images are loaded...
| in the simplest case, just write something in the middle of | in the simplest case, just write something in the middle of
| the background... | the background...

View File

@ -153,7 +153,7 @@ $(document).ready(setup);
</div> </div>
<!-- overlay --> <!-- overlay -->
<div class="overlay"> <div class="overlay noSwipe">
<div class="background"> <div class="background">
</div> </div>
<div class="content"> <div class="content">

View File

@ -1231,18 +1231,22 @@ function setupEvents(){
.swipe({ .swipe({
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... // XXX do gradual zooming...
pinchIn: ImageGrid.scaleContainerDown, //pinchIn: ImageGrid.scaleContainerDown,
pinchOut: ImageGrid.scaleContainerUp //pinchOut: ImageGrid.scaleContainerUp,
fingers: 'all'
}) })
// dragging... // dragging...
// XXX make this work seamlessly with touchSwipe... // XXX make this work seamlessly with touchSwipe...
// XXX cancel clicks while dragging... // XXX cancel clicks while dragging...
// XXX this does not work on android... // XXX this does not work on android...
$('.field').draggable() //$('.field').draggable()
} }