From c768bb8cec093fe7192469ff9aed68ba805dd687 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 6 Apr 2023 16:02:06 +0800 Subject: [PATCH] :iphone: fix https://github.com/siyuan-note/siyuan/issues/7898 --- app/src/mobile/util/touch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts index 7124f2fa0..71f65d673 100644 --- a/app/src/mobile/util/touch.ts +++ b/app/src/mobile/util/touch.ts @@ -31,6 +31,7 @@ export const handleTouchEnd = (event: TouchEvent) => { const target = event.target as HTMLElement; if (!clientX || !clientY || typeof yDiff === "undefined" || + target.tagName === "AUDIO" || hasClosestByClassName(target, "b3-dialog") || hasClosestByClassName(target, "keyboard") || hasClosestByAttribute(target, "id", "commonMenu") || @@ -152,6 +153,7 @@ let previousClientX: number; export const handleTouchMove = (event: TouchEvent) => { const target = event.target as HTMLElement; if (!clientX || !clientY || + target.tagName === "AUDIO" || hasClosestByClassName(target, "b3-dialog") || hasClosestByClassName(target, "keyboard") || hasClosestByAttribute(target, "id", "commonMenu") ||