check `maxTouchPoints` is greater than 1, not zero (#4158)

zio/stable
Hailey 2024-05-21 12:18:56 -07:00 committed by GitHub
parent 7334e9fd81
commit 630b9b7786
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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