@awayjs/scene 0.13.241 → 0.13.242

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.
@@ -6769,9 +6769,9 @@ var MouseEvent$1 = /** @class */ (function (_super) {
6769
6769
  enumerable: true,
6770
6770
  configurable: true
6771
6771
  });
6772
- MouseEvent.prototype._dispatchEvent = function (dispatcher) {
6772
+ MouseEvent.prototype._dispatchEvent = function (dispatcher, target) {
6773
6773
  if (!dispatcher.isMouseDisabled()) {
6774
- dispatcher.container.dispatchEvent(this);
6774
+ dispatcher.container.dispatchEvent(this, target);
6775
6775
  FrameScriptManager.execute_queue();
6776
6776
  }
6777
6777
  };
@@ -15168,7 +15168,7 @@ var MouseManager = /** @class */ (function () {
15168
15168
  this.onKeyDown = this.onKeyDown.bind(this);
15169
15169
  this.onKeyUp = this.onKeyUp.bind(this);
15170
15170
  this.buttonEnabledDirty = false;
15171
- this._isTouch = (('ontouchstart' in self) || navigator.msMaxTouchPoints > 0);
15171
+ this._isTouch = (('ontouchstart' in self) || navigator['msMaxTouchPoints'] > 0);
15172
15172
  this._showCursor = true;
15173
15173
  this._mouseDragging = false;
15174
15174
  //register stage
@@ -15317,17 +15317,19 @@ var MouseManager = /** @class */ (function () {
15317
15317
  return this._focusNode;
15318
15318
  };
15319
15319
  MouseManager.prototype.dispatchEvent = function (event, dispatcher) {
15320
+ var _a;
15320
15321
  if (!this._eventBubbling) {
15321
15322
  if (dispatcher) {
15322
- event._dispatchEvent(dispatcher);
15323
+ event._dispatchEvent(dispatcher, dispatcher.container);
15323
15324
  }
15324
15325
  return;
15325
15326
  }
15327
+ var target = (_a = dispatcher) === null || _a === void 0 ? void 0 : _a.container;
15326
15328
  while (dispatcher) {
15327
15329
  if (event.commonAncestor && dispatcher == event.commonAncestor) {
15328
15330
  return;
15329
15331
  }
15330
- event._dispatchEvent(dispatcher);
15332
+ event._dispatchEvent(dispatcher, target);
15331
15333
  if (!event._iAllowedToPropagate) {
15332
15334
  dispatcher = null;
15333
15335
  }
@@ -18352,7 +18354,7 @@ var Scene = /** @class */ (function () {
18352
18354
  _awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
18353
18355
  _awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
18354
18356
 
18355
- console.debug('AwayJS - Scene - 0.13.241');
18357
+ console.debug('AwayJS - Scene - 0.13.242');
18356
18358
 
18357
18359
  exports.Timeline = Timeline;
18358
18360
  exports.ControllerBase = ControllerBase;