mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Fix chat list header hitTest
This commit is contained in:
parent
6a708ac1c2
commit
787b8483c4
@ -296,12 +296,6 @@ public final class ChatListHeaderComponent: Component {
|
||||
}
|
||||
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if let view = self.titleContentView?.view, let result = view.hitTest(self.convert(point, to: view), with: event) {
|
||||
return result
|
||||
}
|
||||
if let view = self.chatListTitleView, let result = view.hitTest(self.convert(point, to: view), with: event) {
|
||||
return result
|
||||
}
|
||||
if let backButtonView = self.backButtonView {
|
||||
if let result = backButtonView.hitTest(self.convert(point, to: backButtonView), with: event) {
|
||||
return result
|
||||
@ -317,6 +311,12 @@ public final class ChatListHeaderComponent: Component {
|
||||
return result
|
||||
}
|
||||
}
|
||||
if let view = self.titleContentView?.view, let result = view.hitTest(self.convert(point, to: view), with: event) {
|
||||
return result
|
||||
}
|
||||
if let view = self.chatListTitleView, let result = view.hitTest(self.convert(point, to: view), with: event) {
|
||||
return result
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user