fix: tap and long press emoji below message bubble

pull/638/head
Ryan Zhao 3 years ago
parent 4c011f14e8
commit 841d34d3ef

@ -544,7 +544,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
if reactionContainerView.frame.contains(location) { if reactionContainerView.frame.contains(location) {
let convertedLocation = reactionContainerView.convert(location, from: self) let convertedLocation = reactionContainerView.convert(location, from: self)
for reactionView in reactionContainerView.reactionViews { for reactionView in reactionContainerView.reactionViews {
if reactionView.frame.contains(convertedLocation) { if reactionContainerView.convert(reactionView.frame, from: reactionView.superview).contains(convertedLocation) {
delegate?.showReactionList(viewItem, selectedReaction: reactionView.emoji) delegate?.showReactionList(viewItem, selectedReaction: reactionView.emoji)
break break
} }
@ -568,7 +568,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
} else if reactionContainerView.frame.contains(location) { } else if reactionContainerView.frame.contains(location) {
let convertedLocation = reactionContainerView.convert(location, from: self) let convertedLocation = reactionContainerView.convert(location, from: self)
for reactionView in reactionContainerView.reactionViews { for reactionView in reactionContainerView.reactionViews {
if reactionView.frame.contains(convertedLocation) { if reactionContainerView.convert(reactionView.frame, from: reactionView.superview).contains(convertedLocation) {
if reactionView.showBorder { if reactionView.showBorder {
delegate?.cancelReact(viewItem, for: reactionView.emoji) delegate?.cancelReact(viewItem, for: reactionView.emoji)
} else { } else {

Loading…
Cancel
Save