Skip to content

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

:bug: Preserve database attribute tab scrolling on mobile https://github.com/siyuan-note/siyuan/issues/19656

Danielea789ea3be31
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index f2e62ecdc9..b23b66cdb8 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -531,7 +531,8 @@ export const handleTouchMove = (event: TouchEvent) => {
if (!getTargetSidebar(target) && !getMobileSidebarConfig().sidebarSwipe) {
return;
}
- if (getTargetSidebar(target) || hasClosestByClassName(target, "agent-chat__messages", true)) {
+ if (getTargetSidebar(target) || hasClosestByClassName(target, "agent-chat__messages", true) ||
+ hasClosestByClassName(target, "protyle-db-attr__tabs", true)) {
// 内容可沿手势方向横向滚动时,本次手势持续交给内容,抵达边缘后可再次滑动操作侧栏。
if (scrollBlock || isHorizontalScrollable(target, xDiff)) {
scrollBlock = true;