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