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/web.js CHANGED
@@ -2186,12 +2186,12 @@ var $;
2186
2186
  view.dom_node().scrollIntoView({ block: align });
2187
2187
  }
2188
2188
  bring() {
2189
+ const win = this.$.$mol_dom_context;
2190
+ if (win.parent !== win.self && !win.document.hasFocus())
2191
+ return;
2189
2192
  new this.$.$mol_after_frame(() => {
2190
2193
  this.dom_node().scrollIntoView({ inline: 'start' });
2191
- const win = this.$.$mol_dom_context;
2192
- if (win.parent === win.self || win.document.hasFocus()) {
2193
- this.focused(true);
2194
- }
2194
+ this.focused(true);
2195
2195
  });
2196
2196
  }
2197
2197
  }