Fixed loader bug.

This commit is contained in:
2019-09-19 13:38:24 +02:00
parent 42afa3e7ab
commit 0e1b49675a
71 changed files with 90 additions and 86 deletions
+11 -16
View File
@@ -2631,6 +2631,7 @@
tapDistance = 10,
longPressTime = 500.0,
useCapture = true,
capturePointerEvents = true,
mouseWheelElement = null,
logInteractionsAbove = 12
} = {}
@@ -2638,6 +2639,7 @@
super(element, target, {
tapDistance,
useCapture,
capturePointerEvents,
longPressTime,
mouseWheelElement
});
@@ -3911,7 +3913,14 @@
*/
constructor(
element,
{ stopEvents = 'auto', claimEvents = true, useCapture = true, touchAction = 'none', debugCanvas = null } = {}
{
stopEvents = 'auto',
claimEvents = true,
useCapture = true,
capturePointerEvents = true,
touchAction = 'none',
debugCanvas = null
} = {}
) {
this.onCapture = null;
this.element = element;
@@ -3936,6 +3945,7 @@
this.scatter = new Map();
this.delegate = new InteractionMapper$1(element, this, {
useCapture,
capturePointerEvents,
mouseWheelElement: window
});
@@ -10962,21 +10972,6 @@
}
speak() {
/**
* This is a little bit ugly, but imho the most elegant of all dirty solutions.
*
5ht * Within the plugins we have no knowledge of other cards and such. But must differentiate the
* clicks by their corresponding owner. The SpeechUtterance just takes a text and has no knowledge
* about the node that is currently read to the user.
*
* This means, that we can identify same text, but not differentiate same text on different nodes.
* To account for that, we add the node to the speechSynthesis object (#benefitsOfJavaScript) and
* have access to the node, by - let's say - expanding the functionality of the SpeechSynthesis object.
*
* SO -17.07.19
*/
let activeNode = window.speechSynthesis['speechPluginNode'];
this._updateText();
}
+3 -1
View File
@@ -6260,6 +6260,7 @@
tapDistance = 10,
longPressTime = 500.0,
useCapture = true,
capturePointerEvents = true,
mouseWheelElement = null,
logInteractionsAbove = 12
} = {}
@@ -6267,6 +6268,7 @@
super(element, target, {
tapDistance,
useCapture,
capturePointerEvents,
longPressTime,
mouseWheelElement
});
@@ -8762,7 +8764,7 @@
this.loader.on('load', this._onLoaded.bind(this));
this.loader.on('error', this._onError.bind(this));
if (compression) {
this.loader.pre(PIXI.compressedTextures.imageParser());
this.loader.use(PIXI.compressedTextures.ImageParser.use);
}
}