mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-18 01:01:11 +00:00
21 lines
571 B
Swift
21 lines
571 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
|
|
final class ChatControllerTitlePanelNodeContainer: ASDisplayNode {
|
|
var hitTestExcludeInsets = UIEdgeInsets()
|
|
|
|
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
|
if point.x < self.hitTestExcludeInsets.left {
|
|
return nil
|
|
}
|
|
|
|
for subview in self.view.subviews {
|
|
if let result = subview.hitTest(self.view.convert(point, to: subview), with: event) {
|
|
return result
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
}
|