From 6fc88f38959c76f3c48e129c1ffa99b11c124284 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 2 May 2025 23:38:47 +0200 Subject: [PATCH] chore: add comment Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- client/src/components/Chat/Input/ChatForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index d878e7f07f..72e04091f5 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -127,6 +127,7 @@ const ChatForm = memo(({ index = 0 }: { index?: number }) => { const { submitMessage, submitPrompt } = useSubmitMessage(); + // Detects if the device is a touch-screen by checking if the primary input mechanism is coarse (e.g., a finger). const isTouchScreen = useMemo(() => window.matchMedia?.('(pointer: coarse)').matches, []); const onSubmit = methods.handleSubmit((data: { text: string }) => {