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:
Alex A. Naanou 2012-06-08 01:01:34 +04:00
parent a1f9027bba
commit 8e9e048c00

View File

@ -44,8 +44,10 @@ ISSUES:
<script src="jquery.js"></script>
<!-- script src="jquery.wipetouch.js"></script-->
<!-- 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 -->
<!-- script src="jquery.mobile.js"></script-->
@ -63,9 +65,18 @@ $(document).ready(function() {
// setup event handlers...
$(document)
.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...
.gestures({eventHandler: handleGestures})
/* XXX jquery.mobile handlers...
//.gestures({eventHandler: handleGestures})
/* XXX jquery.mobile handlers... (with this I'm getting way too much bling)
.bind('swipeleft', function(e){
nextImage()
e.preventDefault()