From 323daffbef901edcb6f5a96db3ee4ad14ac933c8 Mon Sep 17 00:00:00 2001 From: burstein Date: Sun, 21 Sep 2025 01:51:40 +0300 Subject: [PATCH] Pass taps in non actionable views in tooltips to main window commit_hash:5956c1f9ae13249bbc97b50afd51ea45193c5a2f --- .../LayoutKit/UI/Blocks/TooltipContainerView.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/ios/LayoutKit/LayoutKit/UI/Blocks/TooltipContainerView.swift b/client/ios/LayoutKit/LayoutKit/UI/Blocks/TooltipContainerView.swift index cbe94cbf0..0defc8c3c 100644 --- a/client/ios/LayoutKit/LayoutKit/UI/Blocks/TooltipContainerView.swift +++ b/client/ios/LayoutKit/LayoutKit/UI/Blocks/TooltipContainerView.swift @@ -70,7 +70,15 @@ public final class TooltipContainerView: UIView, UIActionEventPerforming { } return nil } else { - return super.hitTest(point, with: event) + let result = super.hitTest(point, with: event) + if result === tooltip.view { + DispatchQueue.main.async { + self.close(animated: true) + } + return nil + } + + return result } }