Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin 2020-12-15 08:03:50 +04:00
parent d91ec1bac7
commit e9ac972ee4

View File

@ -1447,13 +1447,14 @@ public final class VoiceChatController: ViewController {
}
}
}
let listMaxY = listTopInset + listSize.height
if bottomEdge.isZero {
bottomEdge = listMaxY
}
var bottomOffset: CGFloat = 0.0
if bottomEdge < listMaxY {
if bottomEdge < listMaxY && (self.panGestureArguments != nil || self.isExpanded) {
bottomOffset = bottomEdge - listMaxY
}