This commit is contained in:
Vanessa 2023-09-07 10:12:46 +08:00
parent 2bbc9fb74b
commit 36a8d52f8f

View file

@ -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 {