mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-28 06:49:37 +00:00
Cancel reaction gesture after long tap
This commit is contained in:
@@ -170,4 +170,8 @@ public final class ReactionSwipeGestureRecognizer: UIPanGestureRecognizer {
|
||||
self.state = .ended
|
||||
}
|
||||
}
|
||||
|
||||
public func cancel() {
|
||||
self.state = .cancelled
|
||||
}
|
||||
}
|
||||
|
||||
@@ -354,6 +354,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePrevewItemNode
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.reactionRecognizer?.cancel()
|
||||
if strongSelf.gestureRecognized(gesture: .longTap, location: point, recognizer: recognizer) {
|
||||
recognizer.cancel()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user