mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix input
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user