mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various fixes
This commit is contained in:
@@ -196,18 +196,9 @@ public final class TapLongTapOrDoubleTapGestureRecognizer: UIGestureRecognizer,
|
||||
self.highlight?(touchLocation)
|
||||
}
|
||||
|
||||
if let hitResult = self.view?.hitTest(touch.location(in: self.view), with: event) {
|
||||
var fail = false
|
||||
if let _ = hitResult as? UIButton {
|
||||
fail = true
|
||||
} else if let node = hitResult.asyncdisplaykit_node, node is ASControlNode {
|
||||
fail = true
|
||||
}
|
||||
|
||||
if fail {
|
||||
self.state = .failed
|
||||
return
|
||||
}
|
||||
if let hitResult = self.view?.hitTest(touch.location(in: self.view), with: event), let _ = hitResult as? UIButton {
|
||||
self.state = .failed
|
||||
return
|
||||
}
|
||||
|
||||
self.tapCount += 1
|
||||
|
||||
Reference in New Issue
Block a user