mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[WIP] Monoforums
This commit is contained in:
@@ -4,18 +4,11 @@ import AsyncDisplayKit
|
||||
|
||||
final class ChatControllerTitlePanelNodeContainer: ASDisplayNode {
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if self.bounds.contains(point) {
|
||||
if let subnodes = self.subnodes {
|
||||
for subnode in subnodes {
|
||||
if subnode.frame.contains(point) {
|
||||
if let result = subnode.view.hitTest(self.view.convert(point, to: subnode.view), with: event) {
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
for subview in self.view.subviews {
|
||||
if let result = subview.hitTest(self.view.convert(point, to: subview), with: event) {
|
||||
return result
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return super.hitTest(point, with: event)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user