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.js CHANGED
@@ -2671,12 +2671,12 @@ var $;
2671
2671
  view.dom_node().scrollIntoView({ block: align });
2672
2672
  }
2673
2673
  bring() {
2674
+ const win = this.$.$mol_dom_context;
2675
+ if (win.parent !== win.self && !win.document.hasFocus())
2676
+ return;
2674
2677
  new this.$.$mol_after_frame(() => {
2675
2678
  this.dom_node().scrollIntoView({ inline: 'start' });
2676
- const win = this.$.$mol_dom_context;
2677
- if (win.parent === win.self || win.document.hasFocus()) {
2678
- this.focused(true);
2679
- }
2679
+ this.focused(true);
2680
2680
  });
2681
2681
  }
2682
2682
  }