From 3ac1d5f49ce6d69cd1cec596acd949f419760b1d Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 4 Sep 2025 17:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E7=A7=BB=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/gl-map-4.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/modules/gl-map-4.vue b/src/pages/modules/gl-map-4.vue index e7dfb89..bbbccc9 100644 --- a/src/pages/modules/gl-map-4.vue +++ b/src/pages/modules/gl-map-4.vue @@ -425,8 +425,8 @@ export default { if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return; // 移动相机(反转方向以获得自然拖动效果) - this.cameraX -= deltaX * 0.3 / this.cameraZoom; - this.cameraY += deltaY * 0.3 / this.cameraZoom; + this.cameraX -= deltaX * 0.05 / this.cameraZoom; + this.cameraY += deltaY * 0.05 / this.cameraZoom; this.previousTouchX = e.touches[0].clientX; this.previousTouchY = e.touches[0].clientY; @@ -486,8 +486,8 @@ export default { if (Math.abs(deltaX) < 1 && Math.abs(deltaY) < 1) return; - this.cameraX -= deltaX * 0.3 / this.cameraZoom; - this.cameraY += deltaY * 0.3 / this.cameraZoom; + this.cameraX -= deltaX * 0.05 / this.cameraZoom; + this.cameraY += deltaY * 0.05 / this.cameraZoom; this.previousTouchX = e.clientX; this.previousTouchY = e.clientY;