mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 02:40:08 +00:00
tried several libs that implement swipe and multytouch gestures, none made it so far... started thinking about implementing one myself
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a1f9027bba
commit
8e9e048c00
@ -44,8 +44,10 @@ ISSUES:
|
|||||||
|
|
||||||
<script src="jquery.js"></script>
|
<script src="jquery.js"></script>
|
||||||
|
|
||||||
|
<!-- script src="jquery.wipetouch.js"></script-->
|
||||||
|
|
||||||
<!-- XXX this does not work on android... -->
|
<!-- XXX this does not work on android... -->
|
||||||
<script src="jquery.gestures.js"></script>
|
<!-- script src="jquery.gestures.js"></script-->
|
||||||
|
|
||||||
<!-- XXX need to figure out how to disable all the bling -->
|
<!-- XXX need to figure out how to disable all the bling -->
|
||||||
<!-- script src="jquery.mobile.js"></script-->
|
<!-- script src="jquery.mobile.js"></script-->
|
||||||
@ -63,9 +65,18 @@ $(document).ready(function() {
|
|||||||
// setup event handlers...
|
// setup event handlers...
|
||||||
$(document)
|
$(document)
|
||||||
.keydown(handleKeys)
|
.keydown(handleKeys)
|
||||||
|
// XXX this is flaky and breaks some of my code...
|
||||||
|
/*.wipetouch({
|
||||||
|
wipeLeft: nextImage,
|
||||||
|
wipeRight: prevImage,
|
||||||
|
wipeUp: demoteImage,
|
||||||
|
wipeDown: promoteImage,
|
||||||
|
|
||||||
|
tapToClick: true
|
||||||
|
})*/
|
||||||
// XXX does not work on android...
|
// XXX does not work on android...
|
||||||
.gestures({eventHandler: handleGestures})
|
//.gestures({eventHandler: handleGestures})
|
||||||
/* XXX jquery.mobile handlers...
|
/* XXX jquery.mobile handlers... (with this I'm getting way too much bling)
|
||||||
.bind('swipeleft', function(e){
|
.bind('swipeleft', function(e){
|
||||||
nextImage()
|
nextImage()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user