fixed emojiboard opening
This commit is contained in:
parent
e971069595
commit
50d3631bc4
3 changed files with 8 additions and 13 deletions
|
|
@ -176,9 +176,10 @@ function toggleEmoji(roomId, eventId, emojiKey, roomTimeline) {
|
|||
}
|
||||
|
||||
function pickEmoji(e, roomId, eventId, roomTimeline) {
|
||||
const boxInfo = e.target.getBoundingClientRect();
|
||||
openEmojiBoard({
|
||||
x: e.detail ? e.clientX : '50%',
|
||||
y: e.detail ? e.clientY : '50%',
|
||||
x: boxInfo.x,
|
||||
y: boxInfo.y,
|
||||
detail: e.detail,
|
||||
}, (emoji) => {
|
||||
toggleEmoji(roomId, eventId, emoji.unicode, roomTimeline);
|
||||
|
|
@ -439,7 +440,7 @@ function ChannelViewContent({
|
|||
iconSrc={EmojiAddIC}
|
||||
onClick={(e) => pickEmoji(e, roomId, mEvent.getId(), roomTimeline)}
|
||||
>
|
||||
Add reaciton
|
||||
Add reaction
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
iconSrc={ReplyArrowIC}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue