mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
scroller.js now working...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
63c19e5365
commit
6cdd12f5cc
@ -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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user