Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin
2020-12-06 23:23:36 +04:00
parent afc64e092c
commit 5867099883
3 changed files with 9 additions and 5 deletions

View File

@@ -1248,7 +1248,7 @@ public final class VoiceChatController: ViewController {
let previousLeftBorderFrame = self.leftBorderNode.frame
let previousRightBorderFrame = self.rightBorderNode.frame
self.updateColors(fullscreen: panelOffset == layoutTopInset)
self.updateColors(fullscreen: abs(panelOffset - layoutTopInset) < 1.0)
if !backgroundFrame.equalTo(previousBackgroundFrame) {
self.backgroundNode.frame = backgroundFrame