scroller.js now working...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-07 01:55:29 +04:00
parent 63c19e5365
commit 6cdd12f5cc

View File

@ -74,7 +74,7 @@ less = {
//DEBUG = true //DEBUG = true
var SCROLLER_ENABLED = false var SCROLLER_ENABLED = true
// setup... // setup...
$(function(){ $(function(){
@ -97,7 +97,7 @@ $(function(){
// XXX does not seem to work... // XXX does not seem to work...
//multiClickTimeout: 100, //multiClickTimeout: 100,
transitionDuration: 100, transitionDuration: 0,
transitionEasing: 'liner', transitionEasing: 'liner',
}) })
.start() .start()
@ -108,6 +108,26 @@ $(function(){
.on('longClick', dblClickHandler) .on('longClick', dblClickHandler)
//.on('longClick', function(){ toggleImageMark() }) //.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 { } else {
// NOTE: this is global so as to not to add any extra complexity to // NOTE: this is global so as to not to add any extra complexity to
// the internal workings... // the internal workings...