From bc18414bfc2df8e3a6e87b8040a33679889fbaa7 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 21 三月 2024 17:20:39 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/player.js | 2 +-
zy-asrs-flow/src/pages/map/index.jsx | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index b8515e5..8da3286 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -146,7 +146,9 @@
player.hideStarryBackground();
setDeviceVisible(false);
- player.activateMapEvent(null);
+ player.activateMapEvent(Utils.MapEvent.SELECTION_BOX, (selectedSprites, resetFn) => {
+ // resetFn();
+ });
mapContainer.children.forEach(child => {
Utils.viewFeature(child, setCurSPrite);
diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index e74fce3..367c1bf 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -84,7 +84,6 @@
this.mapContainer.parent.on('mouseup', (event) => {
if (isSelecting) {
- // sprite show style which be selected
if (this.selectedSprites && this.selectedSprites.length > 0) {
this.selectedSprites.forEach(child => {
Utils.unMarkSprite(child);
@@ -92,6 +91,7 @@
}
this.selectedSprites = [];
+ // sprite show style which be selected
this.mapContainer.children.forEach(child => {
if (Utils.isSpriteInSelectionBox(child, this.selectionBox)) {
this.selectedSprites.push(child);
--
Gitblit v1.9.1