From 0656dcc2ca2280ffe34cacc9dc6c91a4d02c002c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 9 Nov 2022 10:18:05 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/6497 --- app/src/util/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/functions.ts b/app/src/util/functions.ts index 6d036e183..fee2df624 100644 --- a/app/src/util/functions.ts +++ b/app/src/util/functions.ts @@ -3,7 +3,7 @@ export const isMobile = () => { }; export const isTouchDevice = () => { - return ("ontouchstart" in window) || navigator.maxTouchPoints > 0; + return ("ontouchstart" in window) || navigator.maxTouchPoints > 1; }; export const isArrayEqual = (arr1: string[], arr2: string[]) => {