From ad9f10fd82553403a057ab8da5f1c95a7670020c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 06 三月 2024 09:21:53 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/player.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index 7888d27..df75f8a 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -108,10 +108,10 @@
 
                 // batch move
                 if (this.selectedSprites && this.selectedSprites.length > 0) {
-                    this.batchMove = false;
+                    let batchMove = false;
 
                     const batchMoving = (event) => {
-                        if (this.batchMove) {
+                        if (batchMove) {
                             // offset move val
                             var mouseMovement = {
                                 x: (event.global.x - this.batchMoveStartPos.x) / this.scale,
@@ -125,6 +125,7 @@
                     }
 
                     const batchMoveEnd = (event) => {
+                        batchMove = false;
                         this.selectedSprites.forEach(child => {
                             Utils.unMarkSprite(child);
                         })
@@ -141,7 +142,7 @@
                             child.data.batchMoveStartPos = { x: child.position.x, y: child.position.y };
                         })
 
-                        this.batchMove = true;
+                        batchMove = true;
                         this.mapContainer.parent.off('mousemove');
                         this.mapContainer.parent.on('mousemove', batchMoving);
 

--
Gitblit v1.9.1