Scroll infinite.
This commit is contained in:
		
							parent
							
								
									1b6ebf5008
								
							
						
					
					
						commit
						6bdc6a7347
					
				| @ -62,7 +62,7 @@ | ||||
|         let scrollTop = messagesContainer.scrollTop; | ||||
|         let scrollableHeight = messagesContainer.scrollHeight - messagesContainer.clientHeight; | ||||
| 
 | ||||
|         if (scrollTop < scrollableHeight / 4) { | ||||
|         if (scrollTop > scrollableHeight / 2) { | ||||
|             return true; | ||||
|         } | ||||
|         return false; | ||||
| @ -81,9 +81,9 @@ | ||||
|         if(isLoadingExtra){ | ||||
|             return  | ||||
|         } | ||||
|         //if(!isScrolledPastHalf()){ | ||||
|         //    return | ||||
|        // } | ||||
|         if(!isScrolledPastHalf()){ | ||||
|            return | ||||
|         } | ||||
|             isLoadingExtra = true | ||||
|          | ||||
|          | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user