From f3c876acf69ece6f17b0595448e68abf1eb4c5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Tue, 20 Aug 2024 14:00:43 +0200 Subject: [PATCH] VideoDetails: open channel when touching the logo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The touch was consumed by the double touch action and the channel did not open. Signed-off-by: Toni Förster --- Shared/Player/Video Details/VideoDetails.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Shared/Player/Video Details/VideoDetails.swift b/Shared/Player/Video Details/VideoDetails.swift index 2656ee2d..246c8dcb 100644 --- a/Shared/Player/Video Details/VideoDetails.swift +++ b/Shared/Player/Video Details/VideoDetails.swift @@ -47,6 +47,9 @@ struct VideoDetails: View { .frame(width: 40, height: 40) .buttonStyle(.plain) .padding(.trailing, 5) + .simultaneousGesture( + TapGesture() // Ensures the button tap is recognized + ) VStack(alignment: .leading, spacing: 2) { HStack { @@ -209,9 +212,8 @@ struct VideoDetails: View { .contentShape(Rectangle()) .padding(.horizontal, 16) #if !os(tvOS) - .tapRecognizer( - tapSensitivity: 0.2, - doubleTapAction: { + .simultaneousGesture( // Simultaneous gesture to prioritize button tap + TapGesture(count: 2).onEnded { withAnimation(.default) { fullScreen.toggle() }