mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
This commit is contained in:
parent
a73af6bcd1
commit
301177a1db
1 changed files with 1 additions and 2 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue