From 8e9e048c00bacd2f48e44cccebda7b1ed10a5d98 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 8 Jun 2012 01:01:34 +0400 Subject: [PATCH] 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 --- ui/gallery.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ui/gallery.html b/ui/gallery.html index 6fda706f..c4d650bb 100755 --- a/ui/gallery.html +++ b/ui/gallery.html @@ -44,8 +44,10 @@ ISSUES: + + - + @@ -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()