From a97a7a41646937d098317f7d53ec643b45de0f14 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 09 十月 2024 16:25:46 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/player.js | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/zy-acs-flow/src/map/player.js b/zy-acs-flow/src/map/player.js index 2dfc06d..9b2124b 100644 --- a/zy-acs-flow/src/map/player.js +++ b/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 = () => { -- Gitblit v1.9.1