From 7e4f4cf001bac46140539096a0cfdd828da093d2 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 15 Jan 2022 12:52:31 +0000 Subject: [PATCH] fix(messaging): hide overlay on mobile --- src/components/common/messaging/Message.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/common/messaging/Message.tsx b/src/components/common/messaging/Message.tsx index 68517fd3..801985e8 100644 --- a/src/components/common/messaging/Message.tsx +++ b/src/components/common/messaging/Message.tsx @@ -6,6 +6,7 @@ import { memo } from "preact/compat"; import { useState } from "preact/hooks"; import { internalEmit } from "../../../lib/eventEmitter"; +import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice"; import { QueuedMessage } from "../../../mobx/stores/MessageQueue"; @@ -175,12 +176,14 @@ const Message = observer( {message.embeds?.map((embed, index) => ( ))} - {mouseHovering && !replacement && ( - - )} + {mouseHovering && + !replacement && + !isTouchscreenDevice && ( + + )}