mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	started fixing a minor bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									72cc52ee36
								
							
						
					
					
						commit
						3f752c7425
					
				| @ -112,6 +112,8 @@ var SingleImageActions = actions.Actions({ | |||||||
| 			'ribbon-focus-mode': 'order', | 			'ribbon-focus-mode': 'order', | ||||||
| 			'shifts-affect-direction': 'off', | 			'shifts-affect-direction': 'off', | ||||||
| 		}, | 		}, | ||||||
|  | 
 | ||||||
|  | 		'single-image-toggle-on-click': true, | ||||||
| 	}, | 	}, | ||||||
| 
 | 
 | ||||||
| 	// XXX make this accept args for debuging...
 | 	// XXX make this accept args for debuging...
 | ||||||
| @ -432,6 +434,7 @@ module.SingleImageView = core.ImageGridFeatures.Feature({ | |||||||
| 		['imageBlockClick.pre', | 		['imageBlockClick.pre', | ||||||
| 			function(gid){ | 			function(gid){ | ||||||
| 				if(gid == this.current | 				if(gid == this.current | ||||||
|  | 						&& this.config['single-image-toggle-on-click'] | ||||||
| 						&& this.toggleSingleImage('?') == 'off'){ | 						&& this.toggleSingleImage('?') == 'off'){ | ||||||
| 					// indicate that we have handled the click...
 | 					// indicate that we have handled the click...
 | ||||||
| 					this.__clicked_block = true | 					this.__clicked_block = true | ||||||
| @ -445,6 +448,7 @@ module.SingleImageView = core.ImageGridFeatures.Feature({ | |||||||
| 		['imageClick.pre', | 		['imageClick.pre', | ||||||
| 			function(gid){ | 			function(gid){ | ||||||
| 				gid == this.current | 				gid == this.current | ||||||
|  | 					&& this.config['single-image-toggle-on-click'] | ||||||
| 					&& this.toggleSingleImage('?') == 'on' | 					&& this.toggleSingleImage('?') == 'on' | ||||||
| 					// only handle the click if it was not handled in 
 | 					// only handle the click if it was not handled in 
 | ||||||
| 					// imageBlockClick...
 | 					// imageBlockClick...
 | ||||||
|  | |||||||
| @ -179,6 +179,9 @@ var SlideshowActions = actions.Actions({ | |||||||
| 						this.loadWorkspace('slideshow') | 						this.loadWorkspace('slideshow') | ||||||
| 					} | 					} | ||||||
| 
 | 
 | ||||||
|  | 					// XXX
 | ||||||
|  | 					this.config['single-image-toggle-on-click'] = false | ||||||
|  | 
 | ||||||
| 					// start the timer... 
 | 					// start the timer... 
 | ||||||
| 					this.__slideshouw_timer = setInterval(function(){ | 					this.__slideshouw_timer = setInterval(function(){ | ||||||
| 						var cur = that.current | 						var cur = that.current | ||||||
|  | |||||||
| @ -1378,7 +1378,7 @@ var ButtonsActions = actions.Actions({ | |||||||
| 		'main-buttons': { | 		'main-buttons': { | ||||||
| 			'☰': ['menu', 'browseActions -- Action menu...'], | 			'☰': ['menu', 'browseActions -- Action menu...'], | ||||||
| 			'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'], | 			'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'], | ||||||
| 			'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'], | 			//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
 | ||||||
| 		}, | 		}, | ||||||
| 
 | 
 | ||||||
| 		// XXX not sure about these yet...
 | 		// XXX not sure about these yet...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user