From 347efd3007e66f69a26996de6d1b981a8ba4c64e Mon Sep 17 00:00:00 2001 From: lyf <2514544224@qq.com> Date: Tue, 7 Jul 2026 03:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E4=B8=89=E7=BB=B4=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=B9=B3=E7=A7=BB=E4=BA=A4=E4=BA=92=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/ThreeMap.vue | 8 ++++++-- src/components/navigation/GuideMapShell.vue | 2 +- src/pages/index/index.vue | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/map/ThreeMap.vue b/src/components/map/ThreeMap.vue index a582b5b..6e72969 100644 --- a/src/components/map/ThreeMap.vue +++ b/src/components/map/ThreeMap.vue @@ -290,7 +290,7 @@ const props = withDefaults(defineProps<{ showControls: true, showPoi: false, targetFocus: null, - touchGestureMode: 'orbit', + touchGestureMode: 'pan', targetFocusDistanceFactor: 0.36, routePreview: null, showRoute: false, @@ -497,10 +497,14 @@ const logThreeMapDiagnostic = ( const syncControlInteractionOptions = () => { if (!controls) return + controls.enableRotate = false controls.enablePan = true controls.screenSpacePanning = true controls.panSpeed = 0.85 - controls.touches.ONE = props.touchGestureMode === 'pan' ? THREE.TOUCH.PAN : THREE.TOUCH.ROTATE + controls.mouseButtons.LEFT = THREE.MOUSE.PAN + controls.mouseButtons.MIDDLE = THREE.MOUSE.DOLLY + controls.mouseButtons.RIGHT = THREE.MOUSE.PAN + controls.touches.ONE = THREE.TOUCH.PAN controls.touches.TWO = THREE.TOUCH.DOLLY_PAN } diff --git a/src/components/navigation/GuideMapShell.vue b/src/components/navigation/GuideMapShell.vue index 034eb9e..7aaeb27 100644 --- a/src/components/navigation/GuideMapShell.vue +++ b/src/components/navigation/GuideMapShell.vue @@ -388,7 +388,7 @@ const props = withDefaults(defineProps<{ normalizeFloorId: (labelOrId: string) => labelOrId, dimmed: false, targetFocusRequest: null, - touchGestureMode: 'orbit', + touchGestureMode: 'pan', targetFocusDistanceFactor: 0.36, routePreview: null, showRoute: false, diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 74efd3b..2602b9e 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -591,10 +591,10 @@ const indoorLayerMode = computed(() => ( indoorView.value === 'multi' ? 'multi' : 'single' )) const showIndoorGestureHint = ref(true) -const indoorGestureHintText = ref('单指旋转 · 双指缩放/平移 · 点选标记查看位置') +const indoorGestureHintText = ref('单指平移 · 双指缩放/平移 · 点选标记查看位置') let indoorGestureHintTimer: ReturnType | null = null -const showIndoorHint = (text = '单指旋转 · 双指缩放/平移 · 点选标记查看位置', durationMs = 5200) => { +const showIndoorHint = (text = '单指平移 · 双指缩放/平移 · 点选标记查看位置', durationMs = 5200) => { indoorGestureHintText.value = text showIndoorGestureHint.value = is3DMode.value @@ -923,7 +923,7 @@ const handleFloorChange = (floorId: string) => { indoorView.value = 'floor' selectedGuidePoi.value = null isPoiCardCollapsed.value = false - showIndoorHint(`已切换到 ${getGuideFloorLabel(floorId)},单指旋转、双指可平移`, 3200) + showIndoorHint(`已切换到 ${getGuideFloorLabel(floorId)},单指平移、双指可缩放`, 3200) console.log('楼层渲染完成:', floorId) }