New layout: Fixed low priority rooms titles obscured by bottom bar when side scrolling

This commit is contained in:
Gil Eluard 2022-09-19 15:35:58 +02:00
parent a5804a3025
commit 8b002fde0c
2 changed files with 9 additions and 0 deletions

View file

@ -351,12 +351,20 @@ class AllChatsViewController: HomeViewController {
}
override func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
guard scrollView == recentsTableView else {
return
}
initialScrollPosition = scrollPosition(of: scrollView)
}
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
super.scrollViewDidScroll(scrollView)
guard scrollView == recentsTableView else {
return
}
let scrollPosition = scrollPosition(of: scrollView)
if !self.recentsTableView.isDragging && scrollPosition == 0 && self.navigationController?.isToolbarHidden == true {

1
changelog.d/6707.bugfix Normal file
View file

@ -0,0 +1 @@
New layout: Fixed Low priority rooms titles obscured by bottom bar when side scrolling