mol_dump_lib 0.0.1029 → 0.0.1031

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/node.js CHANGED
@@ -5308,6 +5308,7 @@ var $;
5308
5308
  render_visible_only() {
5309
5309
  return this.$.$mol_support_css_overflow_anchor();
5310
5310
  }
5311
+ _view_window_last = [0, 0];
5311
5312
  view_window(next) {
5312
5313
  const kids = this.sub();
5313
5314
  if (kids.length < 3)
@@ -5317,7 +5318,7 @@ var $;
5317
5318
  const rect = this.view_rect();
5318
5319
  if (next)
5319
5320
  return next;
5320
- let [min, max] = $mol_mem_cached(() => this.view_window()) ?? [0, 0];
5321
+ let [min, max] = $mol_mem_cached(() => this.view_window()) ?? this._view_window_last;
5321
5322
  const shift = this.view_window_shift();
5322
5323
  this.view_window_shift(0);
5323
5324
  min += shift;
@@ -5412,7 +5413,7 @@ var $;
5412
5413
  sub_visible() {
5413
5414
  return [
5414
5415
  ...this.gap_before() ? [this.Gap_before()] : [],
5415
- ...this.sub().slice(...this.view_window()),
5416
+ ...this.sub().slice(...this._view_window_last = this.view_window()),
5416
5417
  ...this.gap_after() ? [this.Gap_after()] : [],
5417
5418
  ];
5418
5419
  }