Skip to content

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

:bug: Correct cell selection in pinned tables https://github.com/siyuan-note/siyuan/issues/18563

Danielacfd7d4b1995
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index b01f5edb7d..a90d6eb57e 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2094,7 +2094,7 @@ export class WYSIWYG {
touchesBottom && touchesRight ? radius : 0,
touchesBottom && touchesLeft ? radius : 0,
].join(" ");
- tableBlockElement.querySelector(".table__select").setAttribute("style", `left:${left - tableBlockElement.firstElementChild.scrollLeft}px;top:${top - tableElement.scrollTop}px;height:${bottom - top}px;width:${right - left}px;border-radius:${borderRadius};`);
+ tableBlockElement.querySelector(".table__select").setAttribute("style", `left:${left - tableBlockElement.firstElementChild.scrollLeft}px;top:${top}px;height:${bottom - top}px;width:${right - left}px;border-radius:${borderRadius};`);
moveCellElement = moveTarget;
}
return;