#
luxiaotao1123
2024-03-06 c74518bcf694f2711ddd7d8fdf32b3dbce844939
zy-asrs-flow/src/pages/map/player.js
@@ -16,9 +16,6 @@
        this.mapContainer = generatePixiContainer('mapContainer');
        this.app.stage.addChild(this.mapContainer);
        this.app.view.addEventListener('contextmenu', (event) => {
            event.preventDefault();
        });
        // this.activateMapEvent(null);
        this.activateMapScale();
@@ -105,8 +102,7 @@
                isSelecting = false;
                this.selectionBox.clear();
                // batch move
                // sprites batch move
                Utils.spriteListBeMovable(this.selectedSprites, this.scale, () => {
                    this.activateMapEvent(Utils.MapEvent.SELECTION_BOX);
                });
@@ -235,6 +231,9 @@
    })
    app.stage.eventMode = 'static';
    app.stage.hitArea = app.screen;
    app.view.addEventListener('contextmenu', (event) => {
        event.preventDefault();
    });
    return app;
}