From 816632ae38c2e679b8c18a63789033e0d002f37d Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 26 Dec 2025 21:42:12 +0800 Subject: [PATCH] Update --- .../Sources/ChatTextInputActionButtonsNode.swift | 1 - .../Sources/GlassBackgroundComponent.swift | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift b/submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift index 9550c56159..b758e33d0e 100644 --- a/submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift @@ -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) diff --git a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift index e9230420bd..aa3fe356ee 100644 --- a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift +++ b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift @@ -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