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
[_] 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...
| in the simplest case, just write something in the middle of
| the background...

View File

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

View File

@ -1231,18 +1231,22 @@ function setupEvents(){
.swipe({
swipeLeft: ImageGrid.nextImage,
swipeRight: ImageGrid.prevImage,
swipeUp: ImageGrid.shiftImageUp,
swipeDown: ImageGrid.shiftImageDown,
// XXX do gradual zooming...
pinchIn: ImageGrid.scaleContainerDown,
pinchOut: ImageGrid.scaleContainerUp
//pinchIn: ImageGrid.scaleContainerDown,
//pinchOut: ImageGrid.scaleContainerUp,
fingers: 'all'
})
// dragging...
// XXX make this work seamlessly with touchSwipe...
// XXX cancel clicks while dragging...
// XXX this does not work on android...
$('.field').draggable()
//$('.field').draggable()
}