mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
now swiping up/down will shift an image...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4c720d6de2
commit
3b0d8a5218
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user