mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	fix: #2615 scrollbar jitter under certain message counts
This commit is contained in:
		@@ -940,7 +940,7 @@ function _Chat() {
 | 
			
		||||
    const prevPageMsgIndex = msgRenderIndex - CHAT_PAGE_SIZE;
 | 
			
		||||
    const nextPageMsgIndex = msgRenderIndex + CHAT_PAGE_SIZE;
 | 
			
		||||
 | 
			
		||||
    if (isTouchTopEdge) {
 | 
			
		||||
    if (isTouchTopEdge && !isTouchBottomEdge) {
 | 
			
		||||
      setMsgRenderIndex(prevPageMsgIndex);
 | 
			
		||||
    } else if (isTouchBottomEdge) {
 | 
			
		||||
      setMsgRenderIndex(nextPageMsgIndex);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user