mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	hopefully fix https://github.com/vector-im/vector-web/issues/226
This commit is contained in:
		
							parent
							
								
									dd3427d8d0
								
							
						
					
					
						commit
						81128ef06e
					
				@ -325,7 +325,7 @@ module.exports = {
 | 
			
		||||
        if (this.refs.messageWrapper) {
 | 
			
		||||
            var messageWrapperScroll = ReactDOM.findDOMNode(this.refs.messageWrapper).children[2];
 | 
			
		||||
            var wasAtBottom = this.atBottom;
 | 
			
		||||
            this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight;
 | 
			
		||||
            this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight - 1;
 | 
			
		||||
            if (this.atBottom && !wasAtBottom) {
 | 
			
		||||
                this.forceUpdate(); // remove unread msg count
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user