From 301177a1dbfcd7be8557bb3e955a78d677b9840b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 3 Feb 2025 12:18:37 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/pull/13995 --- app/src/protyle/ui/initUI.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts index 639f5dbdb..85fd82964 100644 --- a/app/src/protyle/ui/initUI.ts +++ b/app/src/protyle/ui/initUI.ts @@ -79,7 +79,6 @@ export const initUI = (protyle: IProtyle) => { if (!window.siyuan.config.editor.fontSizeScrollZoom || (isMacOS && !event.metaKey) || (!isMacOS && !event.ctrlKey) || event.deltaX !== 0) { return; } - event.preventDefault(); event.stopPropagation(); if (event.deltaY < 0) { if (window.siyuan.config.editor.fontSize < 72) { @@ -113,7 +112,7 @@ export const initUI = (protyle: IProtyle) => { }); }); }, Constants.TIMEOUT_LOAD); - }, {passive: false}); + }, {passive: true}); protyle.contentElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => { // wysiwyg 元素下方点击无效果 https://github.com/siyuan-note/siyuan/issues/12009 if (protyle.disabled ||