mol_plot_all 1.2.396 → 1.2.398

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
@@ -2159,9 +2159,12 @@ var $;
2159
2159
  view.dom_node().scrollIntoView({ block: align });
2160
2160
  }
2161
2161
  bring() {
2162
- new $mol_after_frame(() => {
2162
+ new this.$.$mol_after_frame(() => {
2163
2163
  this.dom_node().scrollIntoView({ inline: 'start' });
2164
- this.focused(true);
2164
+ const win = this.$.$mol_dom_context;
2165
+ if (win.parent === win.self || win.document.hasFocus()) {
2166
+ this.focused(true);
2167
+ }
2165
2168
  });
2166
2169
  }
2167
2170
  }