Skip to content

Commit

Permalink
🎨 #13995
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 3, 2025
1 parent a73af6b commit 301177a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/protyle/ui/initUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit 301177a

Please sign in to comment.