@design.estate/dees-wcctools 1.0.99 → 1.0.100

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.
@@ -43573,6 +43573,7 @@ var WccDashboard2 = class extends DeesElement {
43573
43573
  this.warning = null;
43574
43574
  this.frameScrollY = 0;
43575
43575
  this.sidebarScrollY = 0;
43576
+ this.scrollPositionsApplied = false;
43576
43577
  if (elementsArg) {
43577
43578
  this.elements = elementsArg;
43578
43579
  console.log("got elements:");
@@ -43755,6 +43756,9 @@ var WccDashboard2 = class extends DeesElement {
43755
43756
  window.history.replaceState(null, "", fullUrl);
43756
43757
  }
43757
43758
  async applyScrollPositions() {
43759
+ if (this.scrollPositionsApplied) {
43760
+ return;
43761
+ }
43758
43762
  const wccFrame = await this.wccFrame;
43759
43763
  const wccSidebar = this.shadowRoot.querySelector("wcc-sidebar");
43760
43764
  if (wccFrame && this.frameScrollY > 0) {
@@ -43763,6 +43767,7 @@ var WccDashboard2 = class extends DeesElement {
43763
43767
  if (wccSidebar && this.sidebarScrollY > 0) {
43764
43768
  wccSidebar.scrollTop = this.sidebarScrollY;
43765
43769
  }
43770
+ this.scrollPositionsApplied = true;
43766
43771
  }
43767
43772
  };
43768
43773
  __decorateClass([