mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Temp
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import AsyncDisplayKit
|
||||
|
||||
final class ChatControllerTitlePanelNodeContainer: ASDisplayNode {
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if self.bounds.contains(point) {
|
||||
var foundHit = false
|
||||
if let subnodes = self.subnodes {
|
||||
for subnode in subnodes {
|
||||
if subnode.frame.contains(point) {
|
||||
foundHit = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if !foundHit {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return super.hitTest(point, with: event)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user