From 6b030044a85f377463a5ada7c1e02bd9ed98ecd6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 26 Sep 2024 16:18:11 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12585 --- app/src/protyle/wysiwyg/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index a7667a3bd..61cf1af47 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2278,7 +2278,7 @@ export class WYSIWYG { } const embedItemElement = hasClosestByClassName(event.target, "protyle-wysiwyg__embed"); - if (embedItemElement && !ctrlIsPressed) { + if (embedItemElement) { const embedId = embedItemElement.getAttribute("data-id"); checkFold(embedId, (zoomIn, action) => { /// #if MOBILE @@ -2320,8 +2320,11 @@ export class WYSIWYG { } /// #endif }); - event.stopPropagation(); - return; + // https://github.com/siyuan-note/siyuan/issues/12585 + if (!ctrlIsPressed) { + event.stopPropagation(); + return; + } } if (commonClick(event, protyle)) {