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