mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +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...
 | // XXX make keep_ribbons option work...
 | ||||||
| function cropDataToGIDs(gids, keep_ribbons){ | function cropDataToGIDs(gids, keep_ribbons){ | ||||||
| 	var cur = DATA.current | 	var cur = DATA.current | ||||||
|  | |||||||
| @ -150,13 +150,13 @@ $(function(){ | |||||||
| 				centerRibbons() | 				centerRibbons() | ||||||
| 			}) | 			}) | ||||||
| 			.on('swipeUp', function(){ | 			.on('swipeUp', function(){ | ||||||
| 				prevRibbon()  | 				//prevRibbon()  | ||||||
| 				//shiftImageUp(null, DIRECTION)  | 				shiftImageDown(null, DIRECTION)  | ||||||
| 				centerRibbons() | 				centerRibbons() | ||||||
| 			}) | 			}) | ||||||
| 			.on('swipeDown', function(){ | 			.on('swipeDown', function(){ | ||||||
| 				nextRibbon()  | 				//nextRibbon()  | ||||||
| 				//shiftImageDown(null, DIRECTION)  | 				shiftImageUp(null, DIRECTION)  | ||||||
| 				centerRibbons() | 				centerRibbons() | ||||||
| 			}) | 			}) | ||||||
| 
 | 
 | ||||||
| @ -247,13 +247,11 @@ $(function(){ | |||||||
| 	loading | 	loading | ||||||
| 		.done(function(){ | 		.done(function(){ | ||||||
| 			showStatus('Loading settings...') | 			showStatus('Loading settings...') | ||||||
| 			loadLocalStorageSettings() | 			DATA_ATTR + '_SETTINGS' in localStorage && loadLocalStorageSettings() | ||||||
| 
 | 
 | ||||||
| 			// XXX this will reload everything... | 			// XXX this will reload everything... | ||||||
| 			// XXX this might load the wrong marks (not sure)... | 			// XXX this might load the wrong marks (not sure)... | ||||||
| 			if('MARKED' in localStorage){ | 			DATA_ATTR + '_MARKED' in localStorage && loadLocalStorageMarks() | ||||||
| 				loadLocalStorageMarks() |  | ||||||
| 			} |  | ||||||
| 
 | 
 | ||||||
| 			updateImages() | 			updateImages() | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user