mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Voice Chat UI improvements
This commit is contained in:
@@ -1426,11 +1426,16 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
|
||||
}
|
||||
|
||||
if self.stackFromBottom {
|
||||
let previousCompleteHeight = completeHeight
|
||||
let updatedCompleteHeight = max(completeHeight, self.visibleSize.height)
|
||||
let deltaCompleteHeight = updatedCompleteHeight - completeHeight
|
||||
topItemEdge -= deltaCompleteHeight
|
||||
bottomItemEdge -= deltaCompleteHeight
|
||||
completeHeight = updatedCompleteHeight
|
||||
|
||||
if let _ = self.keepMinimalScrollHeightWithTopInset {
|
||||
completeHeight += effectiveInsets.top + previousCompleteHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user