[client] Improve prefetchMore debounce

This commit is contained in:
Laura Hausmann 2023-11-23 19:33:47 +01:00
parent 248bf22b94
commit f9f7553ecd
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -54,7 +54,7 @@ const props = defineProps<{
const pagingComponent = ref<InstanceType<typeof MkPagination>>(); const pagingComponent = ref<InstanceType<typeof MkPagination>>();
const interval = ref<NodeJS.Timer>(); const interval = ref<NodeJS.Timer>();
const lastFetchScrollTop = ref(0); const lastFetchScrollTop = ref(document.documentElement.clientHeight / 2 * -1);
function scrollTop() { function scrollTop() {
if (!tlEl.value) return; if (!tlEl.value) return;