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
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...