mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-09 04:44:55 +00:00
Update
This commit is contained in:
@@ -201,7 +201,6 @@ public final class ChatTextInputActionButtonsNode: ASDisplayNode, ChatSendMessag
|
||||
|
||||
self.expandMediaInputButton = HighlightTrackingButton()
|
||||
self.expandMediaInputButtonBackgroundView = GlassBackgroundView()
|
||||
self.expandMediaInputButtonBackgroundView.isUserInteractionEnabled = false
|
||||
self.expandMediaInputButtonIcon = GlassBackgroundView.ContentImageView()
|
||||
self.expandMediaInputButtonBackgroundView.contentView.addSubview(self.expandMediaInputButtonIcon)
|
||||
self.expandMediaInputButtonBackgroundView.contentView.addSubview(self.expandMediaInputButton)
|
||||
|
||||
@@ -391,6 +391,15 @@ public class GlassBackgroundView: UIView {
|
||||
}
|
||||
|
||||
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if !self.isUserInteractionEnabled {
|
||||
return nil
|
||||
}
|
||||
if self.isHidden {
|
||||
return nil
|
||||
}
|
||||
if self.alpha == 0.0 {
|
||||
return nil
|
||||
}
|
||||
if let nativeView = self.nativeView {
|
||||
if let result = nativeView.hitTest(self.convert(point, to: nativeView), with: event) {
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user