Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: no editor

Vanessa49936f4ae486
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index b708700491..8a444ee817 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -42,8 +42,9 @@ export const handleTouchEnd = (event: TouchEvent) => {
) {
return;
}
-
- window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "";
+ if (window.siyuan.mobile.editor) {
+ window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "";
+ }
// 有些事件不经过 touchstart 和 touchmove,因此需设置为 null 不再继续执行
clientX = null;
@@ -243,7 +244,9 @@ export const handleTouchMove = (event: TouchEvent) => {
}
activeBlur();
hideKeyboardToolbar();
- window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "hidden";
+ if (window.siyuan.mobile.editor) {
+ window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "hidden";
+ }
}
};