From 76fb92f18f5aebff32b7ba13008b0c0a8955bd4f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 05 三月 2024 17:25:34 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/player.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index a820654..ba9447e 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/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);
--
Gitblit v1.9.1