mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 08:36:29 +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:
parent
70d821fe5d
commit
f3c876acf6
@ -47,6 +47,9 @@ struct VideoDetails: View {
|
|||||||
.frame(width: 40, height: 40)
|
.frame(width: 40, height: 40)
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.padding(.trailing, 5)
|
.padding(.trailing, 5)
|
||||||
|
.simultaneousGesture(
|
||||||
|
TapGesture() // Ensures the button tap is recognized
|
||||||
|
)
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
HStack {
|
HStack {
|
||||||
@ -209,9 +212,8 @@ struct VideoDetails: View {
|
|||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.padding(.horizontal, 16)
|
.padding(.horizontal, 16)
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
.tapRecognizer(
|
.simultaneousGesture( // Simultaneous gesture to prioritize button tap
|
||||||
tapSensitivity: 0.2,
|
TapGesture(count: 2).onEnded {
|
||||||
doubleTapAction: {
|
|
||||||
withAnimation(.default) {
|
withAnimation(.default) {
|
||||||
fullScreen.toggle()
|
fullScreen.toggle()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user