From a56deac8925a6fb4f049ba37b2f0901ff3914532 Mon Sep 17 00:00:00 2001 From: bingo yang Date: Fri, 5 Jan 2024 09:33:34 +0800 Subject: [PATCH] ifix touch detection --- src/internal/feature-detection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/feature-detection.ts b/src/internal/feature-detection.ts index c54a51d..836414f 100644 --- a/src/internal/feature-detection.ts +++ b/src/internal/feature-detection.ts @@ -16,7 +16,7 @@ export function detectFeatures():DetectedFeatures { (/iPad|iPhone|iPod|Android/.test(navigator.userAgent)) || // OR //if is blink(chrome/opera) with touch events enabled -> no native dnd - (isBlinkEngine && ("ontouchstart" in document.documentElement)) + (isBlinkEngine && navigator.maxTouchPoints > 0) ) }; }