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) {
 | 
								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;
 | 
									const current = window.scrollY + window.innerHeight;
 | 
				
			||||||
				if (current > document.body.offsetHeight - 8) this.loadMore();
 | 
									if (current > document.body.offsetHeight - 8) this.loadMore();
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue