mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	bug fixed...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									dcf13b6797
								
							
						
					
					
						commit
						9ea3f79903
					
				| @ -162,6 +162,9 @@ actions.Actions({ | |||||||
| 				return | 				return | ||||||
| 			} | 			} | ||||||
| 			this.direction = this._direction_last | 			this.direction = this._direction_last | ||||||
|  | 			// NOTE: this stabilizes the .direction, preventing repeating
 | ||||||
|  | 			// 		the last explicitly set value over and over again...
 | ||||||
|  | 			this._direction_last = this.direction | ||||||
| 
 | 
 | ||||||
| 		// force direction change...
 | 		// force direction change...
 | ||||||
| 		} else if(typeof(value) == typeof('str')  | 		} else if(typeof(value) == typeof('str')  | ||||||
| @ -625,9 +628,6 @@ actions.Actions({ | |||||||
| 		{undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }}, | 		{undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }}, | ||||||
| 		function(target, to){ this.data.shiftImage(target, to) }], | 		function(target, to){ this.data.shiftImage(target, to) }], | ||||||
| 	 | 	 | ||||||
| 	// XXX BUG: this messes up .direction handling...
 |  | ||||||
| 	// 		to repeat:
 |  | ||||||
| 	// 			- 
 |  | ||||||
| 	shiftImageUp: ['Edit|Image/Shift image up', | 	shiftImageUp: ['Edit|Image/Shift image up', | ||||||
| 		core.doc`Shift image up...
 | 		core.doc`Shift image up...
 | ||||||
| 
 | 
 | ||||||
| @ -649,7 +649,8 @@ actions.Actions({ | |||||||
| 
 | 
 | ||||||
| 				this.data.shiftImageUp(cur) | 				this.data.shiftImageUp(cur) | ||||||
| 				this.focusImage(next) | 				this.focusImage(next) | ||||||
| 				this.config['shifts-affect-direction'] == 'on' && (this.direction = '!') | 				this.config['shifts-affect-direction'] == 'on'  | ||||||
|  | 					&& (this.direction = '!') | ||||||
| 
 | 
 | ||||||
| 			// if a specific target is given, just shift it...
 | 			// if a specific target is given, just shift it...
 | ||||||
| 			} else { | 			} else { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user