From 3f00813034f8d5bfc6643e9443b1b9f983d19177 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 9 Nov 2022 10:25:56 +0800 Subject: [PATCH] :bug: fix 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 fee2df624..19de0d267 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 > 1; + return ("ontouchstart" in window) && navigator.maxTouchPoints > 1; }; export const isArrayEqual = (arr1: string[], arr2: string[]) => {