From 36a8d52f8f2656a4cfb1400696e74ac7c006b206 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 7 Sep 2023 10:12:46 +0800 Subject: [PATCH] :iphone: fix https://github.com/siyuan-note/siyuan/issues/9111 --- app/src/boot/globalEvent/touch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/boot/globalEvent/touch.ts b/app/src/boot/globalEvent/touch.ts index 4e47e9066..936d9de3a 100644 --- a/app/src/boot/globalEvent/touch.ts +++ b/app/src/boot/globalEvent/touch.ts @@ -45,7 +45,7 @@ export const globalTouchEnd = (event: TouchEvent, yDiff: number, time: number, a if (target.tagName === "SPAN" && !hasClosestByAttribute(target, "data-type", "NodeBlockQueryEmbed")) { let editor: Protyle if (isIPhone()) { - if (hasClosestByClassName(target, "protyle-wysiwyg")) { + if (hasClosestByClassName(target, "protyle-wysiwyg", true)) { editor = getCurrentEditor(); } } else {