pull/10119/head
Dominic Gannaway 3 years ago
parent 316e98674f
commit 32e6dca0d7

@ -585,11 +585,6 @@ function flush_queued_effects(effects) {
function process_microtask() {
is_micro_task_queued = false;
if (current_queued_microtasks.length > 0) {
const tasks = current_queued_microtasks.slice();
current_queued_microtasks = [];
run_all(tasks);
}
if (flush_count > 101) {
return;
}
@ -602,6 +597,11 @@ function process_microtask() {
if (!is_micro_task_queued) {
flush_count = 0;
}
if (current_queued_microtasks.length > 0) {
const tasks = current_queued_microtasks.slice();
current_queued_microtasks = [];
run_all(tasks);
}
}
/**

@ -672,8 +672,7 @@ function each_item_animate(block, transitions, index, index_is_reactive) {
if (index_is_reactive) {
prev_index = /** @type {import('./types.js').Signal<number>} */ (prev_index).v;
}
const items = block.p.v;
if (prev_index !== index && /** @type {number} */ (index) < items.length) {
if (prev_index !== index) {
const from_dom = /** @type {Element} */ (get_first_element(block));
const from = from_dom.getBoundingClientRect();
// Cancel any existing key transitions

Loading…
Cancel
Save