@galacean/engine-core 1.2.0-beta.2 → 1.2.0-beta.3

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/main.js CHANGED
@@ -19465,7 +19465,8 @@ __decorate([
19465
19465
  /** @internal */ this._upList = new DisorderedArray();
19466
19466
  /** @internal */ this._downList = new DisorderedArray();
19467
19467
  this._nativeEvents = [];
19468
- if (_instanceof(target, Window)) {
19468
+ // Temporary solution for mini program, window does not exist
19469
+ if (typeof Window !== "undefined" && _instanceof(target, Window)) {
19469
19470
  throw "Do not set window as target because window cannot listen to pointer leave event.";
19470
19471
  }
19471
19472
  this._engine = engine;