diff options
author | Hailey <me@haileyok.com> | 2024-05-21 12:18:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 20:18:56 +0100 |
commit | 630b9b77869a6f82355888a1a859198932f1f8a7 (patch) | |
tree | e3096b3b210b729d9f56ee6bcd3491ff4adf789b /src | |
parent | 7334e9fd81bc22e15356e1c217a9a94779544a36 (diff) | |
download | voidsky-630b9b77869a6f82355888a1a859198932f1f8a7.tar.zst |
check `maxTouchPoints` is greater than 1, not zero (#4158)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 2 |
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) { |