Skip to content

Commit c93e02a

Browse files
committed
Various fixes
1 parent b80fb9a commit c93e02a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public final class GlassBarButtonComponent: Component {
145145
guard let result = super.hitTest(point, with: event) else {
146146
return nil
147147
}
148+
if result === self.glassContainerView || result === self.genericContainerView {
149+
return self.containerView
150+
}
148151
return result
149152
}
150153

@@ -280,7 +283,6 @@ public final class GlassBarButtonComponent: Component {
280283
}
281284

282285
if let glassBackgroundView = self.glassBackgroundView {
283-
self.containerView.isUserInteractionEnabled = false
284286
if self.containerView.superview !== glassBackgroundView.contentView {
285287
glassBackgroundView.contentView.addSubview(self.containerView)
286288
}

0 commit comments

Comments
 (0)