mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Voice Chat Fixes
This commit is contained in:
parent
862404a4b8
commit
9e68f36042
@ -2879,6 +2879,10 @@ public final class VoiceChatController: ViewController {
|
|||||||
completion?()
|
completion?()
|
||||||
}
|
}
|
||||||
self.topPanelBackgroundNode.frame = CGRect(x: 0.0, y: topPanelHeight - 24.0, width: size.width, height: 24.0)
|
self.topPanelBackgroundNode.frame = CGRect(x: 0.0, y: topPanelHeight - 24.0, width: size.width, height: 24.0)
|
||||||
|
|
||||||
|
guard self.panGestureArguments == nil else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var bottomEdge: CGFloat = 0.0
|
var bottomEdge: CGFloat = 0.0
|
||||||
self.listNode.forEachItemNode { itemNode in
|
self.listNode.forEachItemNode { itemNode in
|
||||||
@ -2889,17 +2893,21 @@ public final class VoiceChatController: ViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let listMaxY = listTopInset + listSize.height
|
|
||||||
if bottomEdge.isZero {
|
|
||||||
bottomEdge = listMaxY
|
|
||||||
}
|
|
||||||
|
|
||||||
var bottomOffset: CGFloat = bottomEdge - listMaxY
|
let listMaxY = listTopInset + listSize.height
|
||||||
// if bottomEdge < listMaxY && (self.panGestureArguments != nil || self.isExpanded) {
|
var bottomOffset: CGFloat = min(0.0, bottomEdge - listMaxY)
|
||||||
|
//min(bottomEdge, listMaxY)
|
||||||
|
|
||||||
|
//
|
||||||
|
// if bottomEdge.isZero {
|
||||||
|
// bottomEdge = listMaxY
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// var bottomOffset: CGFloat = min(0.0, bottomEdge - listMaxY)
|
||||||
|
// if bottomEdge < listMaxY && self.isExpanded {
|
||||||
// bottomOffset = bottomEdge - listMaxY
|
// bottomOffset = bottomEdge - listMaxY
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
let bottomCornersFrame = CGRect(origin: CGPoint(x: sideInset, y: -50.0 + bottomOffset), size: CGSize(width: size.width - sideInset * 2.0, height: 50.0))
|
let bottomCornersFrame = CGRect(origin: CGPoint(x: sideInset, y: -50.0 + bottomOffset), size: CGSize(width: size.width - sideInset * 2.0, height: 50.0))
|
||||||
let previousBottomCornersFrame = self.bottomCornersNode.frame
|
let previousBottomCornersFrame = self.bottomCornersNode.frame
|
||||||
if !bottomCornersFrame.equalTo(previousBottomCornersFrame) {
|
if !bottomCornersFrame.equalTo(previousBottomCornersFrame) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user