From e9ac972ee475d22489d83c671bdaa4cd176be7fd Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 15 Dec 2020 08:03:50 +0400 Subject: [PATCH] Voice Chat UI fixes --- submodules/TelegramCallsUI/Sources/VoiceChatController.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index ed01e5bc55..a66eed1ac5 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -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 }