mol_dump_lib 0.0.1029 → 0.0.1030

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web.mjs CHANGED
@@ -4696,6 +4696,7 @@ var $;
4696
4696
  render_visible_only() {
4697
4697
  return this.$.$mol_support_css_overflow_anchor();
4698
4698
  }
4699
+ _view_window_last = [0, 0];
4699
4700
  view_window(next) {
4700
4701
  const kids = this.sub();
4701
4702
  if (kids.length < 3)
@@ -4705,7 +4706,7 @@ var $;
4705
4706
  const rect = this.view_rect();
4706
4707
  if (next)
4707
4708
  return next;
4708
- let [min, max] = $mol_mem_cached(() => this.view_window()) ?? [0, 0];
4709
+ let [min, max] = $mol_mem_cached(() => this.view_window()) ?? this._view_window_last;
4709
4710
  const shift = this.view_window_shift();
4710
4711
  this.view_window_shift(0);
4711
4712
  min += shift;
@@ -4800,7 +4801,7 @@ var $;
4800
4801
  sub_visible() {
4801
4802
  return [
4802
4803
  ...this.gap_before() ? [this.Gap_before()] : [],
4803
- ...this.sub().slice(...this.view_window()),
4804
+ ...this.sub().slice(...this._view_window_last = this.view_window()),
4804
4805
  ...this.gap_after() ? [this.Gap_after()] : [],
4805
4806
  ];
4806
4807
  }