mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweeked touch controls and disabled pinching...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6e3ce3806c
commit
6756b9d789
@ -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...
|
||||
|
||||
@ -153,7 +153,7 @@ $(document).ready(setup);
|
||||
</div>
|
||||
|
||||
<!-- overlay -->
|
||||
<div class="overlay">
|
||||
<div class="overlay noSwipe">
|
||||
<div class="background">
|
||||
</div>
|
||||
<div class="content">
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user