Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/13647

Vanessafbb7bdad8226
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index 4940390dae..b351b50a1f 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -173,6 +173,12 @@ export const handleTouchMove = (event: TouchEvent) => {
) {
return;
}
+
+ // 正在编辑时禁止滑动
+ if(!document.querySelector("#keyboardToolbar").classList.contains("fn__none")) {
+ return;
+ }
+ // 只读状态下未选中内容时时禁止滑动
if (getSelection().rangeCount > 0) {
// 选中后扩选的情况
const range = getSelection().getRangeAt(0);