diff --git a/RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItem.swift b/RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItem.swift index 59a4da658c..87631b2169 100644 --- a/RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItem.swift +++ b/RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItem.swift @@ -75,13 +75,13 @@ struct UserSessionListItem: View { .frame(maxWidth: .infinity, alignment: .leading) .padding(.leading, 16) } - .onTapGesture { - onBackgroundTap?(viewData.sessionId) - } - .onLongPressGesture { - onBackgroundLongPress?(viewData.sessionId) - } } + .simultaneousGesture(LongPressGesture().onEnded { _ in + onBackgroundLongPress?(viewData.sessionId) + }) + .simultaneousGesture(TapGesture().onEnded { + onBackgroundTap?(viewData.sessionId) + }) .frame(maxWidth: .infinity, alignment: .leading) .accessibilityIdentifier("UserSessionListItem_\(viewData.sessionId)") } diff --git a/changelog.d/7035.bugfix b/changelog.d/7035.bugfix new file mode 100644 index 0000000000..a0ecf54ae9 --- /dev/null +++ b/changelog.d/7035.bugfix @@ -0,0 +1 @@ +Device Manager: Session list item is not tappable everywhere.