mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor cleanup and tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									52d9564345
								
							
						
					
					
						commit
						7076cd035a
					
				| @ -72,6 +72,7 @@ | |||||||
| 	transition: left 0.2s ease-out; | 	transition: left 0.2s ease-out; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | /* XXX should this be !important */ | ||||||
| .no-transitions { | .no-transitions { | ||||||
| 	-webkit-transition: none; | 	-webkit-transition: none; | ||||||
| 	-moz-transition: none; | 	-moz-transition: none; | ||||||
| @ -81,7 +82,8 @@ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* XXX think of a way not to use !important */ | /* XXX think of a way not to use !important */ | ||||||
| .viewer.single-image-mode .ribbon { | .single-image-mode .ribbon, | ||||||
|  | .single-image-mode .ribbon-set { | ||||||
| 	-webkit-transition: none !important; | 	-webkit-transition: none !important; | ||||||
| 	-moz-transition: none !important; | 	-moz-transition: none !important; | ||||||
| 	-ms-transition: none !important; | 	-ms-transition: none !important; | ||||||
|  | |||||||
| @ -1307,7 +1307,9 @@ module.ShiftAnimation = Feature({ | |||||||
| 		['shiftImageUp.pre shiftImageDown.pre',  | 		['shiftImageUp.pre shiftImageDown.pre',  | ||||||
| 			function(target){ | 			function(target){ | ||||||
| 				// XXX do not do target lists...
 | 				// XXX do not do target lists...
 | ||||||
| 				if(target != null && target.constructor === Array){ | 				if(target != null && target.constructor === Array  | ||||||
|  | 						// do not animate in single image mode...
 | ||||||
|  | 						&& this.toggleSingleImage('?') == 'on'){ | ||||||
| 					return | 					return | ||||||
| 				} | 				} | ||||||
| 				var s = this.ribbons.makeShadow(target, true) | 				var s = this.ribbons.makeShadow(target, true) | ||||||
| @ -1318,7 +1320,9 @@ module.ShiftAnimation = Feature({ | |||||||
| 		['shiftImageLeft.pre shiftImageRight.pre',  | 		['shiftImageLeft.pre shiftImageRight.pre',  | ||||||
| 			function(target){ | 			function(target){ | ||||||
| 				// XXX do not do target lists...
 | 				// XXX do not do target lists...
 | ||||||
| 				if(target != null && target.constructor === Array){ | 				if(target != null && target.constructor === Array | ||||||
|  | 						// do not animate in single image mode...
 | ||||||
|  | 						&& this.toggleSingleImage('?') == 'on'){ | ||||||
| 					return | 					return | ||||||
| 				} | 				} | ||||||
| 				var s = this.ribbons.makeShadow(target) | 				var s = this.ribbons.makeShadow(target) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user