mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix reaction hit area (#1178)
* Add workaround to stop the message long press steal touches from the reaction button * put back newline
This commit is contained in:
@@ -96,6 +96,8 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
|
||||
alignment: alignment) { key in
|
||||
context.send(viewAction: .toggleReaction(key: key, eventID: timelineItem.id))
|
||||
}
|
||||
// Workaround to stop the message long press stealing the touch from the reaction buttons
|
||||
.onTapGesture { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,6 +119,8 @@ struct TimelineItemPlainStylerView<Content: View>: View {
|
||||
alignment: .leading) { key in
|
||||
context.send(viewAction: .toggleReaction(key: key, eventID: timelineItem.id))
|
||||
}
|
||||
// Workaround to stop the message long press stealing the touch from the reaction buttons
|
||||
.onTapGesture { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user