mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	VideoDetails: open channel when touching the logo
The touch was consumed by the double touch action and the channel did not open. Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
		@@ -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()
 | 
			
		||||
                        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user