@xviewer.js/core 1.0.0-alpha.50 → 1.0.0-alpha.52

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/dist/module.js CHANGED
@@ -2026,6 +2026,7 @@ const browserName = typeof detectUA.browser === "boolean" ? "" : detectUA.browse
2026
2026
  const audioElem = document.createElement("audio");
2027
2027
  class SystemInfo {
2028
2028
  }
2029
+ SystemInfo.isTablet = detectUA.isTablet;
2029
2030
  SystemInfo.isMobile = detectUA.isMobile || detectUA.isTablet;
2030
2031
  SystemInfo.isDesktop = detectUA.isDesktop;
2031
2032
  SystemInfo.device = SystemInfo.isMobile ? "mobile" : "desktop";
@@ -4610,6 +4611,7 @@ class Viewer extends EventEmitter {
4610
4611
  this._targetFrameRate = Math.max(0.001, v);
4611
4612
  }
4612
4613
  destroy() {
4614
+ this.stop();
4613
4615
  this._renderer.dispose();
4614
4616
  this._taskManager.destroy();
4615
4617
  this._resourceManager.destroy();