mol_plot_all 1.2.420 → 1.2.422

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.test.js CHANGED
@@ -2663,12 +2663,12 @@ var $;
2663
2663
  view.dom_node().scrollIntoView({ block: align });
2664
2664
  }
2665
2665
  bring() {
2666
+ const win = this.$.$mol_dom_context;
2667
+ if (win.parent !== win.self && !win.document.hasFocus())
2668
+ return;
2666
2669
  new this.$.$mol_after_frame(() => {
2667
2670
  this.dom_node().scrollIntoView({ inline: 'start' });
2668
- const win = this.$.$mol_dom_context;
2669
- if (win.parent === win.self || win.document.hasFocus()) {
2670
- this.focused(true);
2671
- }
2671
+ this.focused(true);
2672
2672
  });
2673
2673
  }
2674
2674
  }