From c93e02a58e9462f10fef1012523e7eb63fc51409 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 2 Jan 2026 17:48:36 +0400 Subject: [PATCH] Various fixes --- .../Sources/GlassBarButtonComponent.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift b/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift index 468959c742..daa97d1bf8 100644 --- a/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift +++ b/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift @@ -145,6 +145,9 @@ public final class GlassBarButtonComponent: Component { guard let result = super.hitTest(point, with: event) else { return nil } + if result === self.glassContainerView || result === self.genericContainerView { + return self.containerView + } return result } @@ -280,7 +283,6 @@ public final class GlassBarButtonComponent: Component { } if let glassBackgroundView = self.glassBackgroundView { - self.containerView.isUserInteractionEnabled = false if self.containerView.superview !== glassBackgroundView.contentView { glassBackgroundView.contentView.addSubview(self.containerView) }