mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix a bug on iOS 17 where you couldn't long press on a message. (#3567)
This commit is contained in:
@@ -124,6 +124,12 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
|
|||||||
|
|
||||||
var messageBubbleWithActions: some View {
|
var messageBubbleWithActions: some View {
|
||||||
messageBubble
|
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 {
|
.longPressWithFeedback {
|
||||||
context.send(viewAction: .displayTimelineItemMenu(itemID: timelineItem.id))
|
context.send(viewAction: .displayTimelineItemMenu(itemID: timelineItem.id))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user