Skip to content

Commit

Permalink
fix: add pointerEvents to ReactionList (#2196)
Browse files Browse the repository at this point in the history
* fix: add pointerEvents to ReactionList

* Update package/src/components/Message/MessageSimple/ReactionList.tsx

Co-authored-by: Khushal Agarwal <khushal.agarwal987@gmail.com>

---------

Co-authored-by: Khushal Agarwal <khushal.agarwal987@gmail.com>
  • Loading branch information
aharwood9 and khushal87 committed Sep 3, 2023
1 parent b2f3708 commit f559a0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package/src/components/Message/MessageSimple/ReactionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const ReactionListWithContext = <

return (
<View
pointerEvents='box-none'
style={[
styles.container,
{
Expand All @@ -189,8 +190,8 @@ const ReactionListWithContext = <
testID='reaction-list'
>
{reactions.length ? (
<View style={[StyleSheet.absoluteFill]}>
<Svg>
<View pointerEvents='box-none' style={[StyleSheet.absoluteFill]}>
<Svg pointerEvents='none'>
<Circle cx={x1} cy={y1} fill={stroke} r={radius + strokeSize * 3} />
<Circle cx={x2} cy={y2} fill={stroke} r={radius * 2 + strokeSize * 3} />
<Circle cx={x1} cy={y1} fill={fill} r={radius + strokeSize} />
Expand All @@ -213,7 +214,7 @@ const ReactionListWithContext = <
reactionBubbleBackground,
]}
/>
<View style={[StyleSheet.absoluteFill]}>
<View pointerEvents='none' style={[StyleSheet.absoluteFill]}>
<Svg>
<Circle cx={x2} cy={y2} fill={alignmentLeft ? fill : white} r={radius * 2} />
</Svg>
Expand Down

0 comments on commit f559a0f

Please sign in to comment.