check maxTouchPoints is greater than 1, not zero (#4158)
This commit is contained in:
@@ -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) {
|
export function ProfileHoverCard(props: ProfileHoverCardProps) {
|
||||||
if (props.disable || isTouchDevice) {
|
if (props.disable || isTouchDevice) {
|
||||||
|
|||||||
Reference in New Issue
Block a user