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;