From 3ea2bcefb32032f03099e2450e4d4ca385aa22b5 Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Sun, 10 Sep 2023 00:16:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20sessionList=20doubl?= =?UTF-8?q?e=20click=20on=20mobile=20(#169)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/chat/features/SessionList/List/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/chat/features/SessionList/List/index.tsx b/src/pages/chat/features/SessionList/List/index.tsx index 86ce823338695..f4ca0a8c3b8e8 100644 --- a/src/pages/chat/features/SessionList/List/index.tsx +++ b/src/pages/chat/features/SessionList/List/index.tsx @@ -26,7 +26,8 @@ const SessionList = memo(() => { { + // replace onClick with onPointerDown to prevent double click on mobile + onPointerDown={(e) => { e.preventDefault(); if (mobile) switchSession(id);