From 6cdd12f5cca1c7697ed02f5de64395a09a1056f5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 7 Jun 2013 01:55:29 +0400 Subject: [PATCH] scroller.js now working... Signed-off-by: Alex A. Naanou --- ui/index.html | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/ui/index.html b/ui/index.html index d9b32aba..a4a912a6 100755 --- a/ui/index.html +++ b/ui/index.html @@ -74,7 +74,7 @@ less = { //DEBUG = true -var SCROLLER_ENABLED = false +var SCROLLER_ENABLED = true // setup... $(function(){ @@ -97,7 +97,7 @@ $(function(){ // XXX does not seem to work... //multiClickTimeout: 100, - transitionDuration: 100, + transitionDuration: 0, transitionEasing: 'liner', }) .start() @@ -108,6 +108,26 @@ $(function(){ .on('longClick', dblClickHandler) //.on('longClick', function(){ toggleImageMark() }) + .on('swipeLeft', function(){ + updateDirection('prev') + prevImage() + centerRibbons() + }) + .on('swipeRight', function(){ + updateDirection('next') + nextImage() + centerRibbons() + }) + .on('swipeUp', function(){ + prevRibbon() + centerRibbons() + }) + .on('swipeDown', function(){ + nextRibbon() + centerRibbons() + }) + + } else { // NOTE: this is global so as to not to add any extra complexity to // the internal workings...