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:
David Langley
2023-06-27 14:02:23 +01:00
committed by GitHub
parent 544d928287
commit a46af8c27e
2 changed files with 4 additions and 0 deletions
@@ -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 { }
}
}
}