mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
🚨
This commit is contained in:
parent
6a4ed3c92b
commit
aac7fa8101
14 changed files with 37 additions and 37 deletions
|
|
@ -24,7 +24,7 @@ export const scrollEvent = (protyle: IProtyle, element: HTMLElement) => {
|
|||
if (item.dataset.render !== "true") {
|
||||
return;
|
||||
}
|
||||
const scrollRect = item.querySelector(".av__scroll").getBoundingClientRect()
|
||||
const scrollRect = item.querySelector(".av__scroll").getBoundingClientRect();
|
||||
const headerElement = item.querySelector(".av__row--header") as HTMLElement;
|
||||
if (headerElement) {
|
||||
const distance = Math.floor(elementRect.top - scrollRect.top);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue