From ba40737d35c0cfabef319a1e0c93ed0be3f9bada Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 22 三月 2024 09:43:16 +0800 Subject: [PATCH] # --- zy-asrs-flow/src/pages/map/utils.js | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js index 227f565..6865dbc 100644 --- a/zy-asrs-flow/src/pages/map/utils.js +++ b/zy-asrs-flow/src/pages/map/utils.js @@ -72,7 +72,7 @@ } // sprite be movable from sprite click event -export const beMovable = (sprite, setDidClickSprite) => { +export const beMovable = (sprite) => { sprite.off('pointerup'); sprite.off('pointermove'); sprite.off('pointerdown'); @@ -83,7 +83,6 @@ let dragTarget; function onDragStart(event) { if (event.button === 0) { - setDidClickSprite(true); dragTarget = event.currentTarget; mapContainer.parent.off('pointermove'); mapContainer.parent.on('pointermove', onDragMove, dragTarget); @@ -101,7 +100,6 @@ function onDragEnd() { if (dragTarget) { - setDidClickSprite(false); this.parent.off('pointermove'); this.parent.off('pointerup'); dragTarget.alpha = 1; -- Gitblit v1.9.1