mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix reorder gesture
This commit is contained in:
@@ -898,11 +898,13 @@ private final class ReorderingGestureRecognizer: UIGestureRecognizer, UIGestureR
|
||||
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent) {
|
||||
super.touchesEnded(touches, with: event)
|
||||
|
||||
self.delayTimer?.invalidate()
|
||||
|
||||
if self.state == .began || self.state == .changed {
|
||||
self.delayTimer?.invalidate()
|
||||
self.ended()
|
||||
self.state = .failed
|
||||
}
|
||||
|
||||
self.state = .failed
|
||||
}
|
||||
|
||||
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent) {
|
||||
|
||||
Reference in New Issue
Block a user