diff --git a/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift b/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift index 04773cc12d..545a372a04 100644 --- a/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift @@ -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 diff --git a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift index 5b424de352..ef2b216c7d 100644 --- a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift +++ b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift @@ -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 }