chore: tweak pause_effects more (#11864)

* chore: tweak pause_effects more

* tune

* tune
pull/11895/head
Dominic Gannaway 7 months ago committed by GitHub
parent 7429e544cc
commit 5a37d12c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -77,13 +77,18 @@ function pause_effects(items, controlled_anchor, items_map) {
); );
clear_text_content(parent_node); clear_text_content(parent_node);
parent_node.append(/** @type {Element} */ (controlled_anchor)); parent_node.append(/** @type {Element} */ (controlled_anchor));
items_map.clear();
link(items[0].prev, items[length - 1].next);
} }
run_out_transitions(transitions, () => { run_out_transitions(transitions, () => {
for (var i = 0; i < length; i++) { for (var i = 0; i < length; i++) {
var item = items[i]; var item = items[i];
items_map.delete(item.k); if (!is_controlled) {
link(item.prev, item.next); items_map.delete(item.k);
item.o.remove();
link(item.prev, item.next);
}
destroy_effect(item.e, !is_controlled); destroy_effect(item.e, !is_controlled);
} }
}); });

Loading…
Cancel
Save