don't maintain position whenever there are no parents (#4277)
This commit is contained in:
		
							parent
							
								
									13c08f56ba
								
							
						
					
					
						commit
						76f860dad2
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -440,7 +440,9 @@ export function PostThread({
 | 
			
		|||
          onEndReachedThreshold={2}
 | 
			
		||||
          onScrollToTop={onScrollToTop}
 | 
			
		||||
          maintainVisibleContentPosition={
 | 
			
		||||
            isNative ? MAINTAIN_VISIBLE_CONTENT_POSITION : undefined
 | 
			
		||||
            isNative && hasParents
 | 
			
		||||
              ? MAINTAIN_VISIBLE_CONTENT_POSITION
 | 
			
		||||
              : undefined
 | 
			
		||||
          }
 | 
			
		||||
          // @ts-ignore our .web version only -prf
 | 
			
		||||
          desktopFixedHeight
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue