mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
Fix input
This commit is contained in:
parent
ddf68a0729
commit
e3ee0126b2
2 changed files with 7 additions and 1 deletions
|
|
@ -515,7 +515,6 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
|
|||
self.glassBackgroundContainer = GlassBackgroundContainerView()
|
||||
|
||||
self.textInputContainerBackgroundView = GlassBackgroundView(frame: CGRect())
|
||||
self.textInputContainerBackgroundView.isUserInteractionEnabled = false
|
||||
|
||||
self.accessoryPanelContainer = UIView()
|
||||
self.accessoryPanelContainer.clipsToBounds = true
|
||||
|
|
|
|||
|
|
@ -368,6 +368,10 @@ public class GlassBackgroundView: UIView {
|
|||
if let result = nativeView.hitTest(self.convert(point, to: nativeView), with: event) {
|
||||
return result
|
||||
}
|
||||
} else {
|
||||
if let result = self.contentContainer.hitTest(self.convert(point, to: self.contentContainer), with: event) {
|
||||
return result
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
@ -535,6 +539,9 @@ public final class GlassBackgroundContainerView: UIView {
|
|||
guard let result = self.contentView.hitTest(point, with: event) else {
|
||||
return nil
|
||||
}
|
||||
if result === self.contentView {
|
||||
//return nil
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue