fix
This commit is contained in:
parent
7fc2309822
commit
f3da1bcbbd
1 changed files with 8 additions and 6 deletions
|
@ -546,13 +546,15 @@ async function executeQueue() {
|
||||||
unshiftItems(newItems);
|
unshiftItems(newItems);
|
||||||
queue.value = new Map();
|
queue.value = new Map();
|
||||||
} else {
|
} else {
|
||||||
const queueArr = Array.from(queue.value.entries());
|
if (queue.value.size > 0) {
|
||||||
queue.value = new Map(queueArr.slice(props.pagination.limit));
|
const queueArr = Array.from(queue.value.entries());
|
||||||
const newItems = Array.from({ length: Math.min(queueArr.length, props.pagination.limit) }, (_, i) => queueArr[i][1]).reverse();
|
queue.value = new Map(queueArr.slice(props.pagination.limit));
|
||||||
isPausingUpdateByExecutingQueue.value = true;
|
const newItems = Array.from({ length: Math.min(queueArr.length, props.pagination.limit) }, (_, i) => queueArr[i][1]).reverse();
|
||||||
|
isPausingUpdateByExecutingQueue.value = true;
|
||||||
|
|
||||||
await adjustScroll(() => unshiftItems(newItems, Infinity));
|
await adjustScroll(() => unshiftItems(newItems, Infinity));
|
||||||
backed = true;
|
backed = true;
|
||||||
|
}
|
||||||
|
|
||||||
denyMoveTransition.value = true;
|
denyMoveTransition.value = true;
|
||||||
items.value = new Map([...items.value].slice(0, displayLimit.value));
|
items.value = new Map([...items.value].slice(0, displayLimit.value));
|
||||||
|
|
Loading…
Reference in a new issue