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/13915

Vanessa6207421d47c9
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index 0ec40a44e7..f3b873f337 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -233,12 +233,18 @@ export const handleTouchMove = (event: TouchEvent) => {
return;
}
if (sideMaskElement.classList.contains("fn__none")) {
- let scrollElement = hasClosestByAttribute(target, "data-type", "NodeCodeBlock") ||
- hasClosestByAttribute(target, "data-type", "NodeAttributeView") ||
- hasClosestByAttribute(target, "data-type", "NodeMathBlock") ||
- hasClosestByAttribute(target, "data-type", "NodeTable") ||
- hasTopClosestByClassName(target, "list") ||
- hasTopClosestByClassName(target, "protyle-breadcrumb__bar--nowrap");
+ let scrollElement = hasClosestByAttribute(target, "data-type", "NodeCodeBlock");
+ if (event.touches.length > 1 || (scrollElement && !scrollElement.classList.contains("code-block"))) {
+ scrollBlock = true;
+ return;
+ }
+ if (!scrollElement) {
+ scrollElement = hasClosestByAttribute(target, "data-type", "NodeAttributeView") ||
+ hasClosestByAttribute(target, "data-type", "NodeMathBlock") ||
+ hasClosestByAttribute(target, "data-type", "NodeTable") ||
+ hasTopClosestByClassName(target, "list") ||
+ hasTopClosestByClassName(target, "protyle-breadcrumb__bar--nowrap");
+ }
if (scrollElement) {
if (scrollElement.classList.contains("table")) {
scrollElement = scrollElement.firstElementChild as HTMLElement;
@@ -274,7 +280,7 @@ export const handleTouchMove = (event: TouchEvent) => {
return;
}
}
- if (scrollBlock || event.touches.length > 1) {
+ if (scrollBlock) {
return;
}
}