@awayjs/scene 0.13.241 → 0.13.243
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/bundle/awayjs-scene.umd.js +8 -12
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/display/MovieClip.d.ts +0 -2
- package/dist/lib/display/MovieClip.d.ts.map +1 -1
- package/dist/lib/display/MovieClip.js +0 -6
- package/dist/lib/events/MouseEvent.d.ts +2 -2
- package/dist/lib/events/MouseEvent.d.ts.map +1 -1
- package/dist/lib/events/MouseEvent.js +2 -2
- package/dist/lib/managers/MouseManager.d.ts.map +1 -1
- package/dist/lib/managers/MouseManager.js +5 -3
- package/index.ts +1 -1
- package/lib/display/MovieClip.ts +0 -8
- package/lib/events/MouseEvent.ts +3 -3
- package/lib/managers/MouseManager.ts +5 -3
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -7442,12 +7442,6 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
7442
7442
|
this.removeEventListener(MouseEvent$1.DRAG_OVER, this._onDragOver);
|
|
7443
7443
|
this.removeEventListener(MouseEvent$1.DRAG_OUT, this._onDragOut);
|
|
7444
7444
|
};
|
|
7445
|
-
MovieClip.prototype.swapChildrenAt = function (index1, index2) {
|
|
7446
|
-
console.warn('[scene/MovieClip] - swapChildrenAt - not implemented');
|
|
7447
|
-
};
|
|
7448
|
-
MovieClip.prototype.swapDepths = function (child, depth) {
|
|
7449
|
-
console.warn('[scene/MovieClip] - swapDepths - not implemented');
|
|
7450
|
-
};
|
|
7451
7445
|
MovieClip.prototype.getTimelineChildAtSessionID = function (sessionID) {
|
|
7452
7446
|
return this._sessionID_childs[sessionID];
|
|
7453
7447
|
};
|
|
@@ -15168,7 +15162,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
15168
15162
|
this.onKeyDown = this.onKeyDown.bind(this);
|
|
15169
15163
|
this.onKeyUp = this.onKeyUp.bind(this);
|
|
15170
15164
|
this.buttonEnabledDirty = false;
|
|
15171
|
-
this._isTouch = (('ontouchstart' in self) || navigator
|
|
15165
|
+
this._isTouch = (('ontouchstart' in self) || navigator['msMaxTouchPoints'] > 0);
|
|
15172
15166
|
this._showCursor = true;
|
|
15173
15167
|
this._mouseDragging = false;
|
|
15174
15168
|
//register stage
|
|
@@ -15317,17 +15311,19 @@ var MouseManager = /** @class */ (function () {
|
|
|
15317
15311
|
return this._focusNode;
|
|
15318
15312
|
};
|
|
15319
15313
|
MouseManager.prototype.dispatchEvent = function (event, dispatcher) {
|
|
15314
|
+
var _a;
|
|
15320
15315
|
if (!this._eventBubbling) {
|
|
15321
15316
|
if (dispatcher) {
|
|
15322
|
-
event._dispatchEvent(dispatcher);
|
|
15317
|
+
event._dispatchEvent(dispatcher, dispatcher.container);
|
|
15323
15318
|
}
|
|
15324
15319
|
return;
|
|
15325
15320
|
}
|
|
15321
|
+
var target = (_a = dispatcher) === null || _a === void 0 ? void 0 : _a.container;
|
|
15326
15322
|
while (dispatcher) {
|
|
15327
15323
|
if (event.commonAncestor && dispatcher == event.commonAncestor) {
|
|
15328
15324
|
return;
|
|
15329
15325
|
}
|
|
15330
|
-
event._dispatchEvent(dispatcher);
|
|
15326
|
+
event._dispatchEvent(dispatcher, target);
|
|
15331
15327
|
if (!event._iAllowedToPropagate) {
|
|
15332
15328
|
dispatcher = null;
|
|
15333
15329
|
}
|
|
@@ -18352,7 +18348,7 @@ var Scene = /** @class */ (function () {
|
|
|
18352
18348
|
_awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
|
|
18353
18349
|
_awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
|
|
18354
18350
|
|
|
18355
|
-
console.debug('AwayJS - Scene - 0.13.
|
|
18351
|
+
console.debug('AwayJS - Scene - 0.13.243');
|
|
18356
18352
|
|
|
18357
18353
|
exports.Timeline = Timeline;
|
|
18358
18354
|
exports.ControllerBase = ControllerBase;
|