#
luxiaotao1123
2024-03-06 ad9f10fd82553403a057ab8da5f1c95a7670020c
#
1个文件已修改
7 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/map/player.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);