mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Fix a bug on iOS 17 where you couldn't long press on a message. (#3567)
This commit is contained in:
parent
751be7b3a7
commit
c598b6325d
@ -124,6 +124,12 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
|
||||
|
||||
var messageBubbleWithActions: some View {
|
||||
messageBubble
|
||||
.onTapGesture {
|
||||
// We need a tap gesture before the long press gesture below, otherwise something
|
||||
// on iOS 17 hijacks the long press and you can't bring up the context menu. This
|
||||
// is no longer an issue on iOS 18. Note: it's fine for this to be empty, we handle
|
||||
// specific taps within the timeline views themselves.
|
||||
}
|
||||
.longPressWithFeedback {
|
||||
context.send(viewAction: .displayTimelineItemMenu(itemID: timelineItem.id))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user