about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-21 12:18:56 -0700
committerGitHub <noreply@github.com>2024-05-21 20:18:56 +0100
commit630b9b77869a6f82355888a1a859198932f1f8a7 (patch)
treee3096b3b210b729d9f56ee6bcd3491ff4adf789b /src
parent7334e9fd81bc22e15356e1c217a9a94779544a36 (diff)
downloadvoidsky-630b9b77869a6f82355888a1a859198932f1f8a7.tar.zst
check `maxTouchPoints` is greater than 1, not zero (#4158)
Diffstat (limited to 'src')
-rw-r--r--src/components/ProfileHoverCard/index.web.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx
index 60b83e110..75eba6598 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) {