#
luxiaotao1123
2024-10-09 a97a7a41646937d098317f7d53ec643b45de0f14
zy-acs-flow/src/map/player.js
@@ -32,8 +32,6 @@
    activateMapMultiSelect = (fn) => {
        const mapMultiSelectHandle = (event) => {
            console.log(123);
            if (event.button !== 0) {
                return;
            }
@@ -102,6 +100,7 @@
                        fn(this.selectedSprites, () => {
                            // trigger at end of selectionBox when fn happen mouseup
                            this.selectedSprites = [];
                            this.activateMapMultiSelect(fn);
                        });
                    }
@@ -111,6 +110,7 @@
            });
        }
        this.mapContainer.parent.off('mousedown');
        this.mapContainer.parent.on('mousedown', mapMultiSelectHandle)
    }
@@ -274,10 +274,6 @@
    resize = (width, height) => {
        this.app.renderer.resize(width, height);
        this.mapContainer.children.forEach((child) => {
            child.x = width / 2;
            child.y = height / 2;
        });
    }
    destroy = () => {