Home: move to the top if the clicked tab is focus
This commit is contained in:
		
							parent
							
								
									673760e8f9
								
							
						
					
					
						commit
						f8f0356a9f
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -282,6 +282,12 @@ const Home: ParentComponent = (props) => {
 | 
			
		|||
    if (items.length > idx) {
 | 
			
		||||
      items.item(idx).scrollIntoView({ block: "start", behavior: "smooth" });
 | 
			
		||||
    }
 | 
			
		||||
    if (isTabFocus(idx)) {
 | 
			
		||||
      items.item(idx).scrollTo({
 | 
			
		||||
        top: 0,
 | 
			
		||||
        behavior: "smooth",
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  const openFullScreenToot = (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue