Browse Source
			
			
			Merge pull request #468 from flowerField/master
			
				解决双击cell延迟释放导致的选区等问题
			
			
				master
			
			
		 
		
			
				
					
						
						文顶顶
					
					5 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
10 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/controllers/handler.js
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -1440,8 +1440,17 @@ export default function luckysheetHandler() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                menuButton.cancelPaintModel(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 检查当前坐标和焦点坐标是否一致,如果不一致那么进行修正
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let  column_focus = Store.luckysheet_select_save[0]["column_focus"]; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let  row_focus    = Store.luckysheet_select_save[0]["row_focus"]; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(column_focus !== col_index || row_focus !==  row_index){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                row_index = row_focus; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                col_index = column_focus; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            luckysheetupdateCell(row_index, col_index, Store.flowdata); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            /* 设置选区高亮 */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            selectHightlightShow(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |