#
luxiaotao1123
2024-03-05 76fb92f18f5aebff32b7ba13008b0c0a8955bd4f
#
1个文件已修改
13 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/player.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/player.js
@@ -59,12 +59,6 @@
    }
    mapSelect = (event) => {
        if (this.selectedSprites && this.selectedSprites.length > 0) {
            this.selectedSprites.forEach(child => {
                Utils.unMarkSprite(child);
            })
        }
        this.selectedSprites = [];
        let isSelecting = false;
        const selectionBox = new PIXI.Graphics();
@@ -99,6 +93,13 @@
        this.app.view.addEventListener('mouseup', (event) => {
            if (isSelecting) {
                if (this.selectedSprites && this.selectedSprites.length > 0) {
                    this.selectedSprites.forEach(child => {
                        Utils.unMarkSprite(child);
                    })
                }
                this.selectedSprites = [];
                this.mapContainer.children.forEach(child => {
                    if (Utils.isSpriteInSelectionBox(child, selectionBox)) {
                        this.selectedSprites.push(child);