chore: add comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marco Beretta 2025-05-02 23:38:47 +02:00 committed by Danny Avila
parent 4eb0d3b073
commit 6fc88f3895
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -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 }) => {