mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fix reorder gesture
This commit is contained in:
parent
a0cc0131c7
commit
1ddb57c98c
@ -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) {
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user