Skip to content

Commit

Permalink
Merge pull request #7037 from vector-im/aleksandrs/7035_session_list_…
Browse files Browse the repository at this point in the history
…item_tap_fix

Device Manager: Session list item is not tappable everywhere
  • Loading branch information
Aleksandrs Proskurins authored Nov 7, 2022
2 parents 43f2abe + ef5aa4d commit 3c2b4a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/7035.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Device Manager: Session list item is not tappable everywhere.

0 comments on commit 3c2b4a3

Please sign in to comment.