From 17e81018a2dee19f4db1e597e71a91d26fe1395a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 9 Jun 2023 00:39:34 +0200 Subject: [PATCH] FIX: prevents long press to hijack reaction event (#22021) Removing a reaction could start a long press at the same time and put the screen in a stuck state. This commit ensures we give an opportunity to the reaction to capture the event first and not propagate further. --- .../components/chat-message-reaction.hbs | 4 +-- .../components/chat-message-reaction.js | 6 ----- .../discourse/modifiers/chat/on-long-press.js | 26 +++++-------------- 3 files changed, 8 insertions(+), 28 deletions(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-reaction.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-message-reaction.hbs index 5c16e184fcb..fcfdbf47cec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-message-reaction.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-reaction.hbs @@ -1,8 +1,8 @@ {{#if (and @reaction this.emojiUrl)}}