File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -873,13 +873,13 @@ -(void)setBuffer:(Buffer *)buffer {
873
873
874
874
- (void )_scrollToBottom {
875
875
[_lock lock ];
876
+ _scrollTimer = nil ;
877
+ _buffer.scrolledUp = NO ;
878
+ _buffer.scrolledUpFrom = -1 ;
876
879
if (_data.count ) {
877
880
[self .tableView scrollToRowAtIndexPath: [NSIndexPath indexPathForRow: _data.count-1 inSection: 0 ] atScrollPosition: UITableViewScrollPositionBottom animated: NO ];
878
881
[self scrollViewDidScroll: self .tableView];
879
882
}
880
- _scrollTimer = nil ;
881
- _buffer.scrolledUp = NO ;
882
- _buffer.scrolledUpFrom = -1 ;
883
883
[_lock unlock ];
884
884
}
885
885
@@ -1064,7 +1064,7 @@ - (void)refresh {
1064
1064
if (_data.count ) {
1065
1065
int firstRow = [[[self .tableView indexPathsForVisibleRows ] objectAtIndex: 0 ] row ];
1066
1066
if (_lastSeenEidPos >=0 && firstRow > _lastSeenEidPos) {
1067
- if (!_buffer. scrolledUp ) {
1067
+ if (_topUnreadView. alpha == 0 ) {
1068
1068
[UIView beginAnimations: nil context: nil ];
1069
1069
[UIView setAnimationDuration: 0.1 ];
1070
1070
_topUnreadView.alpha = 1 ;
You can’t perform that action at this time.
0 commit comments