check `maxTouchPoints` is greater than 1, not zero (#4158)
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) {
|
||||
|
|
Loading…
Reference in New Issue