mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Disallow scheduled voice chat screen expansion
This commit is contained in:
parent
bafbbef336
commit
dedf0317d3
@ -5832,6 +5832,10 @@ public final class VoiceChatController: ViewController {
|
||||
let translation = recognizer.translation(in: self.contentContainer.view)
|
||||
var velocity = recognizer.velocity(in: self.contentContainer.view)
|
||||
|
||||
if self.isScheduled && (translation.y < 0.0 || velocity.y < 0.0) {
|
||||
return
|
||||
}
|
||||
|
||||
if case let .known(value) = contentOffset, value > 0.0 {
|
||||
velocity = CGPoint()
|
||||
} else if case .unknown = contentOffset {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user