mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -293,9 +293,11 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
|
||||
if (rowElement) {
|
||||
const stickyElement = rowElement.querySelector(".av__colsticky");
|
||||
if (stickyElement) {
|
||||
const stickyRight = stickyElement.getBoundingClientRect().right;
|
||||
if (stickyRight > cellRect.left) {
|
||||
avScrollElement.scrollLeft = avScrollElement.scrollLeft + cellRect.left - stickyRight;
|
||||
if (!stickyElement.contains(cellElement)) { // https://github.com/siyuan-note/siyuan/issues/12162
|
||||
const stickyRight = stickyElement.getBoundingClientRect().right;
|
||||
if (stickyRight > cellRect.left) {
|
||||
avScrollElement.scrollLeft = avScrollElement.scrollLeft + cellRect.left - stickyRight;
|
||||
}
|
||||
}
|
||||
} else if (avScrollRect.left > cellRect.left) {
|
||||
avScrollElement.scrollLeft = avScrollElement.scrollLeft + cellRect.left - avScrollRect.left;
|
||||
|
||||
Reference in New Issue
Block a user