From 630b9b77869a6f82355888a1a859198932f1f8a7 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 21 May 2024 12:18:56 -0700 Subject: [PATCH] check `maxTouchPoints` is greater than 1, not zero (#4158) --- src/components/ProfileHoverCard/index.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 60b83e11..75eba659 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -43,7 +43,7 @@ const floatingMiddlewares = [ }), ] -const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0 +const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 1 export function ProfileHoverCard(props: ProfileHoverCardProps) { if (props.disable || isTouchDevice) {