fix?
This commit is contained in:
parent
04ff07e4e7
commit
f30275a975
|
@ -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 New Issue