Fix chat list header hitTest

This commit is contained in:
Ali 2022-11-18 02:34:08 +04:00
parent 6a708ac1c2
commit 787b8483c4

View File

@ -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
}