mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 19:53:08 +02:00
fix?
This commit is contained in:
parent
04ff07e4e7
commit
f30275a975
1 changed files with 2 additions and 2 deletions
|
@ -165,8 +165,8 @@ const timerForSetPause = ref<number | null>(null);
|
||||||
//#region scrolling
|
//#region scrolling
|
||||||
const checkFn = props.pagination.reversed ? isBottomVisible : isTopVisible;
|
const checkFn = props.pagination.reversed ? isBottomVisible : isTopVisible;
|
||||||
const checkTop = (tolerance?: number) => {
|
const checkTop = (tolerance?: number) => {
|
||||||
if (!contentEl) return;
|
if (!contentEl) return true;
|
||||||
if (!document.body.contains(contentEl)) return;
|
if (!document.body.contains(contentEl)) return true;
|
||||||
return checkFn(contentEl, tolerance, scrollableElement);
|
return checkFn(contentEl, tolerance, scrollableElement);
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue