From 5597c4413562fe202c393f79398ddee224b4bd4a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 15 十月 2024 16:25:58 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index 094c2af..de1f008 100644
--- a/zy-acs-flow/src/map/tool.js
+++ b/zy-acs-flow/src/map/tool.js
@@ -272,7 +272,7 @@
         return;
     }
 
-    mapContainer.scale.set(1);
+    mapContainer.scale.set(0.3);
     mapContainer.position.set(0, 0);
 
     let bounds = sprite.getBounds();
@@ -282,15 +282,14 @@
     };
 
     let targetPos = {
-        x: app.renderer.width / 4 - focusPoint.x * mapContainer.scale.x,
-        y: app.renderer.height / 2 - focusPoint.y * mapContainer.scale.y
+        x: app.renderer.width / 4 - focusPoint.x,
+        y: app.renderer.height / 2 - focusPoint.y
     };
 
     new TWEEDLE.Tween(mapContainer.position)
         .easing(TWEEDLE.Easing.Quadratic.Out)
         .to(targetPos, 500)
         .onComplete(() => {
-            // mapContainer.scale.set(.3);
         })
         .start();
 }

--
Gitblit v1.9.1