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

This commit is contained in:
Hailey
2024-05-21 12:18:56 -07:00
committed by GitHub
parent 7334e9fd81
commit 630b9b7786
@@ -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) {