mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	Fix #1569
This commit is contained in:
		
							parent
							
								
									9eb8595130
								
							
						
					
					
						commit
						d5d7a527a0
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -188,6 +188,11 @@ export default Vue.extend({
 | 
			
		|||
			}
 | 
			
		||||
 | 
			
		||||
			if ((this as any).clientSettings.fetchOnScroll !== false) {
 | 
			
		||||
				// 親要素が display none だったら弾く
 | 
			
		||||
				// https://github.com/syuilo/misskey/issues/1569
 | 
			
		||||
				// http://d.hatena.ne.jp/favril/20091105/1257403319
 | 
			
		||||
				if (this.$el.offsetHeight == 0) return;
 | 
			
		||||
 | 
			
		||||
				const current = window.scrollY + window.innerHeight;
 | 
			
		||||
				if (current > document.body.offsetHeight - 8) this.loadMore();
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue