mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Comment updates
This commit is contained in:
@@ -203,6 +203,7 @@ final class ChatTitleView: UIView, NavigationBarTitleView {
|
||||
self.setNeedsLayout()
|
||||
}
|
||||
self.isUserInteractionEnabled = isEnabled
|
||||
self.button.isUserInteractionEnabled = isEnabled
|
||||
self.updateStatus()
|
||||
}
|
||||
}
|
||||
@@ -635,6 +636,9 @@ final class ChatTitleView: UIView, NavigationBarTitleView {
|
||||
}
|
||||
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if !self.isUserInteractionEnabled {
|
||||
return nil
|
||||
}
|
||||
if self.button.frame.contains(point) {
|
||||
return self.button.view
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user