now swiping up/down will shift an image...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-16 02:57:17 +04:00
parent 4c720d6de2
commit 3b0d8a5218
2 changed files with 10 additions and 8 deletions

View File

@ -1042,6 +1042,10 @@ function loadSettings(){
}
// Crop view to only given gids
//
// Returns the original DATA object.
//
// XXX make keep_ribbons option work...
function cropDataToGIDs(gids, keep_ribbons){
var cur = DATA.current

View File

@ -150,13 +150,13 @@ $(function(){
centerRibbons()
})
.on('swipeUp', function(){
prevRibbon()
//shiftImageUp(null, DIRECTION)
//prevRibbon()
shiftImageDown(null, DIRECTION)
centerRibbons()
})
.on('swipeDown', function(){
nextRibbon()
//shiftImageDown(null, DIRECTION)
//nextRibbon()
shiftImageUp(null, DIRECTION)
centerRibbons()
})
@ -247,13 +247,11 @@ $(function(){
loading
.done(function(){
showStatus('Loading settings...')
loadLocalStorageSettings()
DATA_ATTR + '_SETTINGS' in localStorage && loadLocalStorageSettings()
// XXX this will reload everything...
// XXX this might load the wrong marks (not sure)...
if('MARKED' in localStorage){
loadLocalStorageMarks()
}
DATA_ATTR + '_MARKED' in localStorage && loadLocalStorageMarks()
updateImages()