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
+1 -1
View File
@@ -88,7 +88,7 @@ export class PIXITileLoader extends TileLoader {
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)
}
}
+8 -1
View File
@@ -898,7 +898,14 @@ export class DOMScatterContainer {
*/
constructor(
element,
{ stopEvents = 'auto', claimEvents = true, useCapture = true, capturePointerEvents = true, touchAction = 'none', debugCanvas = null } = {}
{
stopEvents = 'auto',
claimEvents = true,
useCapture = true,
capturePointerEvents = true,
touchAction = 'none',
debugCanvas = null
} = {}
) {
this.onCapture = null
this.element = element